The Samsung Galaxy S23 viewport used by Mobile Preview is 360 × 800 CSS pixels in portrait and 800 × 360 in landscape. The camera is a punch-hole camera.
Size at a glance
| Portrait | 360 × 800 px |
|---|---|
| Landscape | 800 × 360 px |
| Aspect ratio (height / width) | 2.22 |
| Camera | punch-hole camera |
| Tailwind (portrait) | below sm (under 640px) |
| Tailwind (landscape) | md (768px and up) |
These are CSS (layout) pixels, the sizes used by the Mobile Preview frame. Real devices can differ slightly with the browser interface, the display zoom setting or the operating system version.
Test it in CSS
Prefer breakpoints based on your content over device-specific rules. If you need to reproduce this exact size, for example to debug a layout, this media query matches it in portrait:
@media (width: 360px) and (height: 800px) {
/* Samsung Galaxy S23, portrait */
}Android browsers keep the status bar above your page, so the punch-hole camera rarely hides content in a normal tab. Test sticky headers, full-screen overlays and installed web apps, where the page can extend under the status bar.
Preview the Samsung Galaxy S23 in VS Code
The Samsung Galaxy S23 frame is part of Mobile Preview Pro (€6.99, one-time payment, no subscription). The free version includes the iPhone 16, iPhone 17 and iPhone 17 Pro Max. Install the extension, start your dev server, run “Mobile Preview: Show” and pick the Samsung Galaxy S23 from the device menu: your page appears in the frame next to your code and reloads when you save.
Similar widths
- iPhone 12 Mini (375 × 812)
- Samsung Galaxy S26 (360 × 780)
- Samsung Galaxy Z Flip8 (360 × 840)
Frequently asked questions
- What is the Samsung Galaxy S23 viewport size in CSS pixels?
- 360 × 800 in portrait (width × height) and 800 × 360 in landscape, as used by Mobile Preview. The physical screen has more pixels than this; CSS pixels are what your layout sees.
- Which Tailwind breakpoint does the Samsung Galaxy S23 fall in?
- With Tailwind's default breakpoints, the Samsung Galaxy S23 is below sm (under 640px) in portrait and md (768px and up) in landscape.
- Can I preview my site on the Samsung Galaxy S23 in VS Code?
- Yes. The Samsung Galaxy S23 frame is part of Mobile Preview Pro (€6.99, one-time payment). The free version includes the iPhone 16, iPhone 17 and iPhone 17 Pro Max.
All device sizes · FR · ES · PT · DE