Glad it worked for you
Topic summary
A user’s homepage banner image displays correctly on desktop but crops the left and right edges on mobile devices, making parts of the image invisible.
Solution Provided:
Two community members offered CSS fixes to resolve the mobile display issue:
-
Method 1: Add custom CSS through Online Store → Customize → Settings → Custom CSS, targeting the banner media with
object-fit: containandheight: autoproperties for screens under 749px width. -
Method 2: Edit the theme’s
base.cssfile directly by adding similar CSS rules with amin-height: 19remspecification for the banner content.
Outcome:
The original poster confirmed the solution worked successfully. Both approaches use media queries to adjust how the banner image scales on mobile screens, ensuring the full image remains visible without cropping.