Hide a section in desktop

Topic summary

A user wants to hide a large image section on their homepage for desktop view while keeping it visible on mobile.

Solution provided:

  • Navigate to Shopify admin → Online Store → Themes → Actions → Edit code
  • Open the CSS file (base.css, style.css, or theme.css) in the Assets folder
  • Add a media query targeting desktop screens (min-width: 947px)
  • Use display: none; on the specific banner template ID to hide the section
  • Save changes

The response includes visual examples showing the before/after result and the code implementation location in the theme editor.

Status: Solution marked as resolved by the original poster.

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

Hi I have a section on the home page that has only one big picture (one I paste below) how can I hide it completely in tdesktop and only leave it in mobile. thank you

Pass: biangu

Url: www.matibrnd.com

1 Like

HI @MT27

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 (min-width: 749px){
div#Banner-template--18448488431883__image_banner_Vm3g8D {
    display:none;
}
}

And Save.

Result:

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