Skip to main content

How to Hide Reviewsion Blocks on Mobile or Desktop Using CSS

Easily hide Reviewsion theme blocks on specific screen sizes using Shopify’s built-in section Custom CSS field

Updated this week

Sometimes, you may want certain Reviewsion blocks to appear only on specific device types—such as desktop or mobile. Shopify’s built-in Custom CSS field for each section makes it easy to accomplish this using standard media queries.

Hiding Blocks on Mobile Devices

To hide a Reviewsion block specifically on mobile devices, you can use the following CSS snippet in your section’s Custom CSS field:

@media (max-width: 768px) {
.rvsn-theme-block__your-block-name {
display: none !important;
}
}


Replace .rvsn-theme-block__your-block-name with the specific block class you want to hide (for example, .rvsn-theme-block__reviews-carousel).

Hiding Blocks on Desktop Devices

To hide a Reviewsion block specifically on larger screens (e.g., desktop), use the following CSS snippet:

@media (min-width: 769px) {
.rvsn-theme-block__your-block-name {
display: none !important;
}
}

Adjusting Breakpoints

The exact breakpoint values in the above media queries may need adjustment depending on your specific theme or design requirements. Standard Shopify themes typically use around 768px as a common breakpoint between mobile and desktop. If this doesn’t fit your needs, simply adjust the pixel value accordingly.

Applying Custom CSS

To apply this CSS:

  1. In your Shopify Admin, navigate to Online Store > Themes.

  2. Click Customize on your active theme.

  3. Select the section containing your Reviewsion block.

  4. Open the Custom CSS panel.

  5. Paste your CSS snippet and click Save.

Need More Help?

If you need further assistance hiding blocks on mobile or desktop, contact our support team or use the chat widget in your Reviewsion dashboard.

Did this answer your question?