How to set separate slideshow images for mobile and desktop?

Topic summary

Goal: show different slideshow images on mobile vs desktop in Shopify’s Sense theme.

Proposed approaches:

  • Single slideshow, two slides: put the desktop image in slide 1 and the mobile image in slide 2. Add Custom CSS with media queries to hide all slides by default, then show only the first slide on ≥768px (desktop) and only the second slide on ≤767px (mobile).
  • Edit theme code: in the slideshow section (e.g., slideshow.liquid), use CSS media queries to set the background-image for .slideshow-image to a mobile file for max-width: 768px and a desktop file for min-width: 769px (replace with actual file paths).
  • Two sections method (for multiple images): add two separate Slideshow sections in Customize—one populated with desktop images, one with mobile images—and use section-level Custom CSS to hide the desktop section on mobile and the mobile section on desktop via media queries.

Clarifications/issues: the requester struggled to find where to add images and how to hide sections in Sense; guidance was given to add a second Slideshow via Customize and paste CSS in each section’s Custom CSS.

Status: unresolved; code/CSS changes are central to implementation.

Summarized with AI on January 17. AI used: gpt-5.

Hii,
I’m looking to set 2 different images in my slideshow (not in banner), for mobile and desktop and I am using sense them. I have designed images in Canva for both screens.
Currently, it follows the same image on both screens which is not good:

but I want to use this image for my mobile screen.

Hi @Anjuhere
Please just add image to 2 slides, slide 1 is image for desktop and slide 2 is image for mobile. After that, please add this code to Custom CSS of Slideshow section

.slideshow__slide { display: none !important; }
@media screen and (min-width: 768px;) {
.slideshow .slideshow__slide:first-child { display: flex !important; }
}
@media screen and (max-width: 767px;) {
.slideshow .slideshow__slide:nth-child(2) { display: flex !important; }
}

sorry i am unable to understand, where I have to add images?

To display different images in your slideshow for mobile and desktop using the Sense theme, you’ll need to utilize media queries and custom coding in your theme’s Liquid and CSS files. Here’s a step-by-step guide to achieving this:

  1. Make sure you have two sets of images ready - one optimized for mobile and the other for desktop.

  2. In your Shopify admin, go to online store > themes. Find your current theme and click on actions then select edit code.

  3. Locate the section responsible for your slideshow in the theme files. It often has a name like slideshow.liquid or similar.

  4. Inside the slideshow section file, you’ll want to use CSS media queries to target different screen sizes

  5. /* For Mobile */
    @media (max-width: 768px) {
    .slideshow-image {
    background-image: url(‘mobile-image.jpg’);
    }
    }

    /* For Desktop */
    @media (min-width: 769px) {
    .slideshow-image {
    background-image: url(‘desktop-image.jpg’);
    }
    }

  6. replace mobile-image.jpg and desktop-image.jpg with the desired file path, save and test

If you have multiple images for mobile and desktop then please create 2 Slideshow sections, one section add images of desktop, one section display images of mobile and then add those code instead

In custom CSS of slideshow for desktop, add this cod e

@media screen and (max-width: 767px) {
  slideshow-component {
    display: none !important;
  }
}

In Custom CSS of slideshow for mobile, please add this code

@media screen and (min-width: 768px) {
  slideshow-component {
    display: none !important;
  }
}

I am using sense theme and there is no such option here.

Go to your Online store > Themes > Customize and then you can add another Slideshow section by click + Add section and then add images for each section

but there is no option to hide the desktop slideshow on mobile and the mobile slideshow on desktop…