Video on a desktop
Video on a mobile phone
I tried to change the width and height to auto, and also to add an media query but it didn’t work.
<style>
.header-wrapper,
footer.footer {
display: none !important;
}
.drawer {
visibility: hidden;
}
.cart__checkout-button {
max-width: none;
background: #ffffff;
color: #000000;
}
video {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
z-index: -1;
}
@media only screen and (max-width: 767px) {
video {
width: 100%;
height: auto;
}
}
</style>
<video autoplay muted loop playsinline id="myVideo">
<source src="https://cdn.shopify.com/videos/c/o/v/069349678509454a95d205f7e240cf62.mp4" type="video/mp4" playsinline>
</video>

