diff --git a/index.html b/index.html
index 0135a40..9a29099 100644
--- a/index.html
+++ b/index.html
@@ -151,6 +151,7 @@
const vw = Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0);
const vh = Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0);
+ // resize iframe if view width is smaller than frame
if (document.getElementById('live').width > vw) {
document.getElementById('live').width = vw;
document.getElementById('live').height = vw * (9 / 16);