Apple iPhone 15 - Viewport simulation

The Apple iPhone 15 is a popular device among web developers and designers for testing responsive layouts and mobile UI behavior.

It refines Apple’s design philosophy, combining elegance with dependable hardware and a balanced display. Year of release: 2023.

Why Test on Apple iPhone 15?

  • Viewport

    Modern viewport reveals layout and spacing edge cases.

  • Pixel Density (DPR)

    High pixel density highlights blurry icons and images.

  • Performance & Animations

    Smooth interactions are expected — jank stands out immediately.

Viewport Size (CSS Resolution)

The CSS viewport defines how media queries, layout breakpoints, and responsive components behave.

For Apple iPhone 15, the CSS viewport measures:

  • Width: 393 px
  • Height: 852 px

ℹ️ The visible height can vary slightly depending on the browser UI (Safari, Chrome, etc.).

Some analytics platforms only display the physical screen resolution (see below) instead of the CSS viewport size, so keep that in mind when interpreting results.

To see exactly how this viewport behaves in real conditions, you can simulate Apple iPhone 15 directly in your browser using Phone Simulator.

Test on Apple iPhone 15 Now

Accurate viewport simulation directly in your browser.

  • No account required
  • 30+ devices included
  • Works offline
Add to Chrome
  • Free
  • 4.8 rating
  • 9,000+ users
Phone Simulator - Chrome Extension

Pixel Density (Device Pixel Ratio)

Apple iPhone 15 has a device pixel ratio of 3.

Each CSS pixel is rendered using 3 physical pixels, resulting in sharper text and images.

For CSS targeting:

css
@media only screen and (-webkit-min-device-pixel-ratio: 3) {
	/* High-DPI specific styles */
}

In JavaScript:

js
window.devicePixelRatio;
// returns: 3

Physical Screen Resolution

Physical resolution refers to the actual number of hardware pixels on the display. While it does not affect CSS layouts, it is commonly shown in analytics and device specifications.

  • Width: 1179 px
  • Height: 2556 px

ℹ️ Physical resolution is not used for CSS layouts but is often shown in analytics tools.

Frequently Asked Questions

What is the viewport size of Apple iPhone 15?

393×852 CSS pixels.

How can I test my website on Apple iPhone 15?

You can simulate it instantly using the Phone Simulator Chrome extension - no real device required.

How is Phone Simulator better than Chrome DevTools for iPhone 15?

DevTools shows an approximate viewport size, but does not emulate the real Safari mobile browser. Phone Simulator uses exact device characteristics and shows how your site renders in a real iOS browser environment.

Can I test localhost with Phone Simulator on iPhone 15?

Yes. Phone Simulator works with any local URL, including localhost:3000, 127.0.0.1, and similar development setups.

Do I need to buy an iPhone 15 for testing?

No. Phone Simulator provides accurate device simulation for $0 instead of spending $799+ on a physical device.

More Devices for Mobile Testing