Hi Shopify Community! How can I adjust this photo so that the whole image is seen on mobile while not affecting the desktop view? because it’s already fine when in laptop. Any help would be appreciated, thanks in advance!
Welcome to the Shopify community!
Thanks for your good question.
Please share your store URL.
So that I will check and let you know the exact solution here.
Thank you!
Please add the following CSS code to your assets/theme.css bottom of the file.
@media only screen and (max-width: 749px) {
#shopify-section-hero-1 .hero {background-size: contain;}
#shopify-section-hero-1 .mega-title--large {font-size: 1.2em;}
}
Thanks!
Hi, sorry for the late response. I tried it and it works! But it left a gray section maybe because of the desktop layout settings. Is there any way to stretch the image to fill the space (without the image being affected) or atleast just to remove the gray spaces completely? Your help would be really appreciated.
Kindly Share a screenshot of it,
Where is the Grey Spaces,
So that i can help you to fix it, out
There is no way to properly stretch the images; unfortunately the Debut theme’s slider is not renowned for its mobile design.
The best you can do is something like this:
- In your Shopify Admin go to: online store > themes > actions > edit code
- Find Asset > theme.scss.liquid or theme.css and paste this at the bottom of the file:
@media (max-width: 749px){
.hero{
max-height: 62vw;
}
}
There are also some other options available in case you need a more professional/mobile friendly Slideshow section, like this.
I hope this helps.
Kind regards,
Diego
Please take a look at the previous answer, let me know if it doesn’t work.
Kind regards,
Diego
@media only screen and (max-width: 749px)[
#shopify-section-hero-1 .hero {
background-size: none !important;
}
.hero--x-large {
height: 475px !important;
}
}
Add this code in the theme.css or theme.scss file.
Hi Diego, I tried your solution and it worked! Thank you for helping me out, I really appreciate it. Also, the EZFY app you recommended seems cool, I’ll try that one out.
I tried it both with and without the other codes but unfortunately, it didn’t work for me. Thanks for taking the time to help me out though, I really appreciate it.
I just noticed I didn’t thanked you properly, that was on me. Thanks for helping me adjust the home page photo so it would fit for mobile view, I really appreciate it!
Thank you guys for the help! I didn’t expect the responses to be that fast so I’m grateful for that. I hope all of you have a great day!

