How to make product image full width on mobile?

Topic summary

A user seeks to make product images full width without side padding on mobile devices using the Dawn theme.

Proposed Solutions:

  • Multiple respondents suggest adding custom CSS code to the theme files (theme.liquid or base.css)
  • One detailed solution involves using a media query targeting screens up to 749px width with CSS properties for .product__media-list.contains-media.grid
  • The code includes column-gap: unset and scale: 1.04 with !important flags

Current Status:

  • The original poster tested one solution successfully but encountered an unintended side effect: a gap appears on the right side when scrolling
  • Another suggested code snippet did not produce any visible changes
  • The issue remains unresolved as the user seeks a fix for the scrolling gap problem

Note: Several responses in the thread contain garbled or reversed text, making some technical details difficult to verify. Screenshots were shared showing the implementation steps and expected results.

Summarized with AI on November 5. AI used: claude-sonnet-4-5-20250929.

Hello there,

I have been trying to make all product images full width with no padding on both sides on mobile. And i try different code but doesnt seem to work. We are using Dawn theme at the moment.

Anyone can help please?

the website is: https://latetoworkjewellery.com/

1 Like

Hi @ltw_00

Check this one.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “theme. Liquid” file. Find the tag and paste the code below before the tag.


And save.

Result:

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

Here’s a shorter reply:

Hi there,

To make the images full width, you’ll need some CSS adjustments. If you’d like help with that, I can assist you!

Best,
Esther

HI @ltw_00 ,

I have reviewed your requirement, you just need to edit css script and the issue will be resolved. You can follow my instructions!

Step 1: Go to Admin → Online store → Theme > Edit code:

Step 2: Search for the file base.css. And add this code snippet to the end of the file.

@media screen and (max-width: 749px) {
  .product__media-list.contains-media.grid {
    column-gap: unset !important;
    scale: 1.04 !important;
  }
}

Step 3: Save and reload home page.

=>> The result:

I hope these instructions will help you. If they are helpful, please give us likes and mark as the solution.

Have a nice day sir!

Hi there,

Thanks for the reply - I tried on the code and it works. However it also created a gap on the right screen when you scrolls - is there a way to fix this?

Thanks a lots for your help :slightly_smiling_face:

Hi there,

I tried the code but doesn’t seem like it work.

The layout still look the same when I added the code.

Cheer,