Please try to update the code
- Add this code to Custom CSS of mobile section.
@media (min-width: 750px) {
.banner { display: none; }
}
- Add this code to Custom CSS of desktop.
@media (max-width: 749px) {
.banner { display: none; }
}
A user working with Shopify’s Dawn theme needed to display different chart images for desktop and mobile views—hiding the desktop version on mobile and vice versa.
Accepted Solution:
Dan-From-Ryviu provided CSS media queries to add to each image banner section’s Custom CSS:
@media (max-width: 767px) { .banner { display: none; } }@media (min-width: 768px) { .banner { display: none; } }Additional Issues Addressed:
.slideshow or slideshow-component instead of .banner<head> tag.banner with .hero classThe discussion evolved from a simple hide/show request into troubleshooting various edge cases across different themes, devices, and section types. Multiple users confirmed the solution worked for their needs.
Please try to update the code
@media (min-width: 750px) {
.banner { display: none; }
}
@media (max-width: 749px) {
.banner { display: none; }
}