Different image for desktop and mobile (dimensions)

Topic summary

A user seeks guidance on image banner dimensions for both desktop and mobile displays, asking if it’s possible to use two different images for each platform.

Recommended approach:

  • Use browser developer tools (F12 or right-click > Inspect) to check mobile device dimensions
  • Toggle device toolbar (phone icon) to preview various screen sizes (iPhone, Samsung, etc.) with their Width×Height specifications
  • Default mobile development width is typically 414px

Implementation via CSS:

  • Use CSS media queries for responsive design
  • @media only screen and (max-width: 480px) applies styles only when screen width is below 480px
  • @media screen and (min-width: 750px) applies styles for screens above 750px
  • Reference provided to W3Schools for additional media query documentation

The response includes screenshots demonstrating the browser inspection process but doesn’t specify exact banner dimensions, focusing instead on the methodology for determining appropriate sizes.

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

Hi I want to make my image banner adapt to desktop and mobile. I would like to know the dimensions I need to put my image in to make it fit desktop and mobile. I’ve read that you can use 2 different images for mobile and dekstop. Can someone help me with this?

website url: https://thesnoozy.com/

Hi @GeorgeRizos

Please follow these steps:

  • Step 1: First enable the dev mode of the browser by pressing F12 or right click inspect
![view (11).png|1920x946](upload://7IFG6KAN9exe4DpxeG33KzCQ9zY.jpeg)

Step 2: Select the phone icon in the window that displays the mobile size. Here you can choose the size of the phone you want like an iPhone or Samsung, and next to it will display the size Width*Height.

Normally, to design the web for mobile, the developer will use the default width of 414px. To CSS for each screen size, you use responsive CSS. Most commonly, you use @media, for example:

@media only screen and (max-width: 480px){

(code css)

}

That is to apply only when the screen is below 480px in width, or:

@media screen and (min-width: 750px){
(code css)
}

The above code applies to screens above 750px.

You can read more at https://www.w3schools.com/css/css_rwd_mediaqueries.asp

I hope that it’s useful for you.