Full screen mobile banner

Topic summary

A Dawn theme user wants their banner image to display full-screen on both mobile and desktop devices. They’ve already implemented code to position the banner behind the menu/logo, but this caused the image to appear too small on mobile and not full-screen on desktop.

Proposed Solution:
A community member provided CSS code to add to the base.css file, targeting mobile screens (max-width: 749px) with:

  • Banner media height set to 90vh
  • Width set to 100%
  • Object-fit adjustments

Current Issue:
While the code successfully makes the image full-screen, it now causes unwanted stretching/distortion of the banner image on mobile. The original poster is seeking a fix to maintain full-screen display without image distortion.

Status: Unresolved - awaiting further code adjustments to prevent image stretching while maintaining full-screen coverage.

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

Hello, I want my banner picture to be full screen on phone.
I have no experience with code and used some code to get the banner picture behind the website menu and logo. But now the banner picture is displayed too small on mobile. As well as not full screen on desktop.

I’m using dawn theme and my website is https://www.georgious.nl/

I have tried multiple forum solutions to add to /base.cs s
But nothing changes the layout.

Help much appreciated.
Kind regards

1 Like

Hi @Georgious

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){
  .banner__box.content-container {
      position: absolute;
      background: transparent;
      bottom: 10%;
  }
  
.banner__media.media img {
    object-fit:unset;
}

.banner__media.media {
    height: 90vh;
    width: 100%;
}
}

Your Feedback Matters! Please mark the solution and give likes to posts that helped you. Your appreciation fuels our motivation to assist you better!

Hi Made4u,

Thanks for looking into it!

Your code is definitely in the right direction, the image is full screen.
But now its stretched. How do I solve this?

@Made4uo-Ribe Hi thanks for looking into it!
Do you have a fix for the stretching of the image as my previous reply?