Maybe you can gain some more additional insights about iFrames and Custom-Elements and Custom-Code and more here…
Waht is possible and what’s not.
Where are possible work arounds and where not.
Also it depends on if you are working on Wix-Editor or in Wix-Studio. 