I am looking to showcase a demo.html page within a 400px square iframe. When the viewport is smaller than 400px, I want demo.html to only display an image. Then, when clicking on that image in demo.html, the same page should switch to fullscreen mode.
Similar to embedding a slide from slideshare.com and clicking the fullscreen icon for full view, I aim for my page to function in a similar manner.