Xiaomi 15 Simulator - Specs and Resolution

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

With its balanced screen size and high pixel density, it helps uncover spacing and scaling issues in modern mobile layouts. Year of release: 2024.

Why Test on Xiaomi 15?

  • Viewport

    Xiaomi 15 uses a modern, well-balanced viewport that helps identify spacing and breakpoint issues.

  • Pixel Density (DPR)

    Its high device pixel ratio makes blurry images and icon scaling problems easy to spot.

  • Performance & Animations

    Smooth UI interactions are expected, making performance drops immediately noticeable.

Viewport Size (CSS Resolution)

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

For Xiaomi 15, the CSS viewport measures:

  • Width: 400 px
  • Height: 890 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 Xiaomi 15 directly in your browser using Phone Simulator.

Test on Xiaomi 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)

Xiaomi 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: 1200 px
  • Height: 2670 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 Xiaomi 15?

Xiaomi 15 has a viewport size of 400×890 CSS pixels.

How can I test my website on Xiaomi 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 Xiaomi 15?

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

Can I test localhost with Phone Simulator on Xiaomi 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 a Xiaomi 15 for testing?

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

More Devices for Mobile Testing