A Shopify store owner uploaded 16:9 format images for footer sections that display well on mobile but appear excessively large on desktop. They’re seeking a CSS solution to reduce desktop image size without affecting mobile display.
Solution Provided:
The images are actually in 9:16 portrait orientation (suitable for mobile)
A CSS fix targets desktop screens (1024px+) to constrain image width
Implementation requires adding custom CSS to theme.liquid file above the tag
The code uses a page-specific ID check and sets max-width to 800px (adjustable)
Uses modern CSS with :has() selector to target image containers
Implementation Steps:
Navigate to Shopify admin > Online store > Edit code
Locate theme.liquid file
Insert provided CSS code snippet before closing tag
The solution is pending confirmation from the original poster on whether it resolves the issue.
Summarized with AI on November 2.
AI used: claude-sonnet-4-5-20250929.
I’ve set up a page on Shopify where I had to work with footers. The images were uploaded in a 16:9 format to ensure they look great on mobile. However, on the desktop version, the images appear way too large.
Is there a way to reduce the image size on the desktop version without affecting how they display on mobile? Maybe via CSS or some other settings?
You are currently using images with a width-to-height ratio of 9:16 (portrait orientation), which is suitable for mobile devices. On desktop, it naturally won’t display in full.
The solution is to reduce the width of desktop. You can adjust the number 800 to a smaller value if desired.