Product Photos Are Not Well-aligned on Mobile View

Topic summary

Main issue: On mobile, the first product image on certain product pages sits higher than the second image, while other images align correctly. Desktop alignment is fine, and not all products show the problem.

Context provided: Store and product URLs were shared (no password). Screenshots illustrate the misalignment on mobile; visuals are central to understanding the issue.

Proposed fix 1: Add a CSS media query to base.css for screens ≤749px to set .product__media-item { display:flex; align-items:flex-start; }. Result: No visible change reported.

Proposed fix 2: In Product Information > custom CSS for screens ≤749px, adjust margins for .slider-mobile-gutter, .product__media-list, .product__media-item (margin: 0 auto; margin-right: 5px;). Optional enhancement: center all content (images, title, price, quantity, share button) with text-align:center and auto margins.

Notes: The solutions rely on CSS media queries (mobile-specific styling) and selector adjustments. Code snippets are central.

Status: No confirmation that the second set of CSS changes resolved the issue. Discussion remains open pending testing/feedback.

Summarized with AI on December 24. AI used: gpt-5.

Hi Shopify,

My product photos are not on the same horizontal line when shopping on mobile. The main product photo is higher than the second one.

Here are photo of my product page on mobile view:

P.S.

  1. On mobile view, only the first product photo is higher; the rest are fine. As the following photo shows:

  1. On mobile view, not all product photos are ill-organized like this; some of them are well aligned.

  2. On desktop view, product photos are well aligned.

Can you help me solve this question.

Thanks a lot!

Peter Tan

Hi @PeterTan
Thank you for your question.
Please share your store URL, page URL and also password (if your store has one) so we can help you.

Hi,

My store URL: https://hallucihug.com

Product page URL: https://hallucihug.com/products/natural-amethyst-ring

No password

Thank you for your time.

Hi @PeterTan
In this case you can try to add this code into the bottom of the file base.css

@media screen and (max-width: 749px){
.product__media-item {
    display: flex;
    align-items: flex-start;
}
}

Hi,

I did as you advised,

but it seems that nothing happened.

The mobile view still looks like this:

In custom CSS in Product Information section add this:

@media screen and (max-width: 749px){
.slider-mobile-gutter,
.product__media-list,
.product__media-item{
margin:0 auto;
margin-right:5px;
}}

And also if you want to center all content for good view (image, title, price, quantity, share button) add this code :

@media screen and (max-width: 749px){
.slider-mobile-gutter,
.product__media-list,
.product__media-item,{
margin:0 auto;
margin-right:5px;
text-align:center;
}
.product__title,
.price,
.quantity,
.share-button{
margin:0 auto;
text-align:center;
}}