<!DOCTYPE html> <html lang=”en”> <head> <meta charset=”utf-8″> <meta name=”viewport” content=”width=device-width, initial-scale=1.0″> <style> html, body { width: 100%; height: 100%; padding: 0; margin: 0; overflow: hidden; font-family: Arial, sans-serif; font-size: 10px; color: #6e6e6e; background-color: #000; } #preview-frame { width: 100%; height: 100%; background-color: #fff; } @media screen and (max-width: 768px) { html, body { font-size: 8px; } } @media screen and (max-width: 480px) { html, body { font-size: 6px; } } </style> <script src=”//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js”></script> <script> var calcHeight = function() { $(‘#preview-frame’).height($(window).height()); } $(document).ready(function() { calcHeight(); }); $(window).resize(function() { calcHeight(); }).load(function() { calcHeight(); }); </script> </head> <body> <?php include ‘html-encoder.php’; ?> <iframe id=”preview-frame” src=”https://website.com/” name=”preview-frame” frameborder=”0″ noresize=”noresize”></iframe> </body> </html>