Need to resize image banners on mobile

Topic summary

A user is experiencing issues with mobile image banner resizing on their Shopify store despite implementing CSS code for responsive display.

Current Setup:

  • CSS code switches between desktop and mobile banner images at 760px breakpoint
  • Mobile image dimensions are 360px x 360px
  • Code includes media queries to hide/show different banner images based on screen size

Problems Reported:

  • Mobile banner image not displaying correctly despite adding a second image specifically for mobile
  • Button elements are too large on mobile devices
  • The CSS code appears incomplete or corrupted in the post (contains garbled text and broken syntax)

Status: The discussion remains open with no responses yet. The user is seeking assistance to fix both the image sizing and button scaling issues for mobile devices.

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

Hi,

I need help with resizing my images for mobile. This is the code I currently have in place:

.banner__media:first-child {
width: 100%;
}
.banner__media + .banner__media {
display: none;
}
@media screen and (max-width: 760px) {
.banner__media:first-child {
display: none;
}
.banner__media + .banner__media {
width: 100%;
display: block !important;
}
}
@media screen and (max-width: 760px) {
.banner–content-align-mobile-center .banner__buttons–multiple > * {
min-width: 4rem !important;
padding: 0 2.5rem !important;
}
}

I have added a second image- to be used on mobile but it is still not showing correctly. The image is 360 x 360 px for mobile. Also the buttons are too big for mobile

Is anyone able to help with this?