Rendering HTML from model in custom component

I am using a custom component as a preview window to a generated HTML. We got all the components in place using window.Retool.Subscribe. But some code is not getting executed since a video element is failing.
We tried pasting the HTML as it is without any assembling and it works fine.

What to do in this case. Is there a way to set the iFrame Code of the custom component through some query?

Got it, thanks. Had to put the subscribe script at the beginning.