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:
-
Control or override the iframe sizing/positioning on mobile, or
-
Prevent the HTML iFrame element from becoming fullscreen on mobile, or
-
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.