How can I bring the videobanner up on mobile device?

Topic summary

A Shopify store owner is experiencing unwanted spacing above and below a video banner on mobile devices. Multiple solutions were provided involving CSS code modifications:

Main Solutions Offered:

  • Add custom CSS targeting .videoBackground .videoBox with min-height: max-content, margin-top: 8px, and z-index: 0 properties
  • Insert code either in theme.liquid file (above </head> tag) or in base.css/main.css files
  • Use media query @media (max-width: 769px) to target mobile devices specifically

Additional Request:
The user also asked about making the header transparent on mobile (already transparent on desktop with Sense theme).

Resolution:
The issue was successfully resolved after implementing one of the suggested CSS solutions. The user confirmed it works and expressed gratitude.

Summarized with AI on November 8. AI used: claude-sonnet-4-5-20250929.

Hello,

How do you delete the spacing that’s above and under the video as you can see in the image.

my website is:

https://muselabel.nl

1 Like

Hi @Muselabel , Follow these Steps:

  1. Go to Online Store > Themes > edit code

  1. Find theme.liquid file

  2. Add the following code above close tag:

@media screen and (max-width: 769px) { 
    .videoBackground .videoBox { 
 	    min-height: max-content !important; 
        margin-top: 55px !important; 
    } 
}

=> Result:

it doesn’t work for me

Can you also help me make the header transparent on a mobile device? On the desktop, the header is already transparent. I have the sense theme

Hi @Muselabel

Do you mean like this?

If it is check this one.

  1. From you Admin page, go to Online Store > Themes
  2. Select the theme you want to edit
  3. Under the Asset folder, open the main.css(base.css, style.css or theme.css)
  4. Then place the code below at the very bottom of the file.
@media screen and (max-width: 769px) {
    .videoBackground .fullscreen-video-wrap {
        z-index: 0;
        margin-top: 8px;   
    }
    .fullscreen-video-wrap {
        flex-grow: 1;
}
}
  • And Save.

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

You can try add the following code above close tag in file theme.liquid

{% style %}
@media screen and (max-width: 769px) { 
    .videoBackground .videoBox { 
 	    min-height: max-content !important; 
        margin-top: 8px !important; 
        z-index: 0 !important;
    } 
}
{% endstyle %}

if It still not work, you can add the code below at the bottom of the file base.css:

@media screen and (max-width: 769px) { 
    .videoBackground .videoBox { 
 	    min-height: max-content !important; 
        margin-top: 8px !important; 
        z-index: 0 !important;
    } 
}

Result:

Hi @Muselabel

You can solve it by adding this code to Online Store > Themes > Customize > Themes settings > Custom CSS

@media (max-width: 749px) {
.videoBackground .videoBox {
min-height: 300px !important;
margin-top: 60px !important;
}
}

thank you so much it works:)