Skip to content
All Answers
Layout

How do I hide a section on mobile in Squarespace?

Target the section by its data-section-id and wrap the display: none rule in a mobile media query. This hides the section on small screens while keeping it visible on desktop.

Find the section ID by right-clicking the section and choosing Inspect. Look for the data-section-id attribute on the section element.

@media screen and (max-width: 767px) {
  [data-section-id="YOUR_SECTION_ID"] {
    display: none !important;
  }
}

/* Or hide on desktop only, show on mobile */
@media screen and (min-width: 768px) {
  [data-section-id="YOUR_SECTION_ID"] {
    display: none !important;
  }
}
Find your section ID with our ID Finder toolTry it free →

Related Questions

Layout

How do I change the section padding in Squarespace?

Layout

How do I make a section full width in Squarespace?

Layout

How do I center content vertically in a Squarespace section?

Layout

How do I add a divider line between sections in Squarespace?

A little over your head?

No shame — this stuff is hard. Let the pros handle it.

Long Drive MarketingTalk to Long Drive Marketing →