How to make product pictures on product page full width on mobile view

Topic summary

A user wants to make product images display at full width on mobile devices for their Shopify store (dieux.store). They provided reference images showing the desired layout.

Proposed Solution:
Another user suggested adding custom CSS code to the theme’s stylesheet (base.css, style.css, or theme.css) targeting mobile screens (max-width: 749px). The code aims to:

  • Set product media containers to 100% width
  • Remove left margin from first grid items
  • Force product media items to full width

Current Status:
The CSS solution did not work as expected. The issue remains unresolved, and the original poster is seeking alternative solutions.

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

Hey there,

I want to make the product photos on my product page full width, but don’t know how. My store url is: dieux.store and the example of how I want it is like on the second picture. Thank you very much in advance!

1 Like

Hi @dieuxstudios

Try this one.

  1. From your Shopify admin dashboard, click on “Online Store” and then “Themes”.
  2. Find the theme that you want to edit and click on “Actions” and then “Edit code”.
  3. In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:
@media only screen and (max-width: 749px){
    .product-media-container.media-type-image.media-fit-contain.global-media-settings {
    max-width: 100%;
    width: 100%;
}
    .grid--peek.slider .grid__item:first-of-type {
        margin-left: 0 !important;
    }
    .product__media-list .product__media-item {
        width: 100% !important;
    }
}

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

Hey, unfortunetely it didnt work. can you maybe find an other solution