All things Shopify and commerce
I'm using Dawn theme and image banner size is ok in desktop view but it doesn't adapt to screen on mobile view... their sides get cropped. Can someone please help me? Thanks
Hi @naydeam
Here are a few ways to fix the image banner cropping issue on mobile for the Shopify Dawn theme:
@media screen and (max-width: 749px) {
.banner__media {
height: 100vw !important;
}
}
This will make the mobile banner height equal to the screen width, allowing the full image to show without cropping.
object-fit: cover;
This tells the browser to scale the image to fill the banner container while maintaining its aspect ratio, preventing cropping.
The best approach is to use tip #1 and upload a separate mobile-optimized banner image. But the CSS adjustments in tips #2 and #3 can also help if you want to use the same image on all devices.
Was this helpful? Like or Accept solution - Buy me a coffee ☕️
- Contact me: Xipirons | WhatsApp
- Shopify Developer based in France, helping online merchants succeed
Hi @naydeam
I recommend you create 2 separate image banner sections, one for mobile and another for desktop.
@media (max-width: 749px) {
.banner {
display: none !important;
}
}
@media (min-width: 768px) {
.banner {
display: none;
}
}
- Helpful? Like & Accept solution! - Support me? Buy me a coffee
- Ryviu - Product Reviews & QA app: Collect customer reviews, import reviews from AliExpress, Amazon, Etsy, Walmart, Dhgate and CSV.
- Lookfy Gallery: Lookbook Image - Gain customers with photo gallery, video & shoppable image.
- Reelfy‑Shoppable Videos+Reels: Create shoppable videos to engage customers and drive more sales.
- Enjoy 1 month of Shopify for $1. Sign up now.
June brought summer energy to our community. Members jumped in with solutions, clicked ...
By JasonH Jun 5, 2025Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025