Dawn theme - Make main product images full width

Topic summary

A user sought to remove left and right padding from product images on mobile devices in the Dawn theme, making them full-width. Previously available solutions no longer worked.

Visual Goal:

  • Transform product images from having side margins to spanning the entire screen width on mobile
  • Reference images were provided showing current state versus desired outcome

Solution Provided:

  • Add custom CSS code to the theme.liquid file
  • Insert the code snippet above the </body> tag
  • The code targets product media elements and removes padding/margins

Resolution:

  • The solution successfully resolved the issue
  • The user confirmed it worked after struggling independently for 4 hours
Summarized with AI on October 27. AI used: claude-sonnet-4-5-20250929.

Hi all,

I’d like my product images on mobile to take up the full width of the page, as in no padding left or right.

I’ve found a lot of solutions for this problem from earlier this year and last year but none of them seem to work anymore.

This is what it looks like currently:

and below is the goal.

I really appreciate any help with this. I’ve been trying everything for the past 4 hours and I just can’t find a bit of code that works.

Thanks!

1 Like

Hey @Hector25

Follow these Steps:

  1. Go to Online Store

  2. Edit Code

  3. Find theme.liquid file

  4. Add the following code in the bottom of the file above tag


RESULT

If I managed to solve your problem then, don’t forget to Like it and Mark it as Solution!

Best Regards,
Moeed

1 Like

Thanks so much, that worked!

I wish I’d asked the community hours ago instead of stressing haha

1 Like

Thank you for your reply. I’m glad to hear that the solution worked well for you. If you require any more help, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.