html, body { height: 100%; margin: 0; overflow: hidden; } body { position: relative; } canvas, video { display: block; width: 100% !important; height: 100% !important; margin: 0 !important; object-fit: contain !important; }