Black Bars on Top and Bottom of Mobile Video

Website: Saintclairescookiedough.com

Hey there! I have a video on my Shopify store that plays perfectly on desktop but on mobile there are black bars on the top and bottom. See below:

Desktop:

Mobile:

How can I remove these black bars when viewed from mobile?

1 Like

Hi @WK100

Check this one.

  • From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  • Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  • In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 769px){ 
.video-section__media video {
    background: transparent !important;
}
}

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

@Made4uo-Ribe Thank you!! This is a good start but is there a way to make it take up the whole section? See below:

1 Like

Check this one.

Same instruction.

.video-section__poster, .video-section__media iframe, .video-section__media video {
    height: unset !important;
}

And Save.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!