Is it possible to have an html (https Only), to fullscreen the website inside?

I have tried a number of the solutions. The code works perfectly as a standalone (fullscreen functionality working). However, when I embed it into the wix iframe, it doesn’t work on my site in preview or published mode. Am I missing something?