# HTML iFrame element on mobile: is it possible to control fullscreen behavior or iframe sizing?

**URL:** <https://forum.wixstudio.com/t/html-iframe-element-on-mobile-is-it-possible-to-control-fullscreen-behavior-or-iframe-sizing/76611>\
**Category:** Ask the community\
**Tags:** wix-studio, design, question, wix-blocks, code\
**Created:** [February 15, 2026, 1:31am UTC](https://forum.wixstudio.com/t/html-iframe-element-on-mobile-is-it-possible-to-control-fullscreen-behavior-or-iframe-sizing/76611 "2026-02-15T01:31:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas\_curto](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/lucas_curto/32/116157_2.png) [@lucas\_curto](https://forum.wixstudio.com/u/lucas_curto)\
**Post date:** [February 15, 2026, 1:31am UTC](https://forum.wixstudio.com/t/html-iframe-element-on-mobile-is-it-possible-to-control-fullscreen-behavior-or-iframe-sizing/76611/1 "2026-02-15T01:31:45Z")

</div>

Hi Wix team 👋

I’m embedding a custom widget using the **HTML iFrame element** (Embed Code) in Wix Studio. The widget is a **Custom Element (Web Component)** that mounts a React app inside the iframe.

**Context**

- The widget loads correctly on desktop.

- On **mobile** , Wix renders the HTML element as a fullscreen overlay iframe.

- Any CSS or JS I apply only affects the HTML _inside_ the iframe (as expected), not the iframe container created by Wix.

**Question**  
Is there **any supported way** to:

1. Control or override the **iframe sizing/positioning on mobile** , or

2. Prevent the HTML iFrame element from becoming fullscreen on mobile, or

3. Programmatically interact with or configure the iframe container created by Wix (via Velo / Custom Code)?

From the documentation, I understand that:

- HTML Embed elements are always rendered inside a **sandboxed iframe**

- Even Wix Custom Elements / Velo Custom Elements still run **inside that iframe**

- CSS/JS cannot reach the parent document

I just want to confirm officially:

👉 **Is the mobile fullscreen behavior of HTML iFrame elements hard-coded and non-configurable?**  
👉 Or is there any recommended pattern (flags, settings, APIs) to handle this use case?

**What I’m trying to achieve**

- On mobile: open the widget in a controlled “fullscreen-like” mode _only when the user interacts_

- Avoid Wix forcing fullscreen immediately when the iframe loads

If the answer is “this is not possible and must be handled inside the iframe UI”, that’s totally fine — I just want to be sure before redesigning the widget UX.

Thanks in advance 🙏  
Any clarification or official guidance would be super helpful.

---

<div class="post-metadata">

**Author:** ![onemoretime](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/onemoretime/32/104023_2.png) [@onemoretime](https://forum.wixstudio.com/u/onemoretime)\
**Post date:** [February 15, 2026, 4:19am UTC](https://forum.wixstudio.com/t/html-iframe-element-on-mobile-is-it-possible-to-control-fullscreen-behavior-or-iframe-sizing/76611/2 "2026-02-15T04:19:21Z")

</div>

Hi, @lucas_curto !!

Personally, I don’t recall iframes being automatically rendered in full-screen mode on mobile—I wonder if it’s been changed to work like that lately? 🤔 Also, regarding Wix Custom Elements, my understanding is that they run within an iframe inside the editor, but behave differently on the live site. 😇
