What is Viewport?

Viewport Size for Devices

Now a days Smart Phones have very High Display Resolution, A small 6-inch device have same display dimensions which a 32-inch LCD have, How it is possible?

Device Dimensions which is also known as resolution is based upon Pixel Per Inch. The devices which have higher resolution in small display, their ONE pixel contains many more pixels, thats why Retina Display or Device Dimensions got bigger. However device actual dimensions depends on actual Pixels Per Inch which is called "Viewport Size" of device or "device-width". Responsive Websites CSS styles are based upon Viewport sizes of devices. Below is a detailed comparison list of Viewport Size for devices, Phone Dimensions, Screen Sizes and Devices Resolution:

TypeNameViewport sizeDevice ResolutionScreen SizePixel RatioDensity PPICSS PPI
iPhone X375x8121125x24365.8"3458153
iPhone XS375x8121125x24365.8"3458153
iPhone XS Max414x8961242x26886.5"3458153
iPhone 11414x896828x17926.1"2326163
iPhone 11 Pro375x8121125x24365.8"3458153
iPhone 11 Pro Max414x8961242x26886.5"3458153
iPhone 12390x8441170x25326.1"3460153
iPhone 12 Mini375x8121080x23405.4"3476158
iPhone 12 Pro390x8441170x25326.1"3460153
iPhone 12 Pro Max430x9321284x27786.7"3458153
iPhone 13390x8441170x25326.1"3460153
iPhone 13 Mini375x8121080x23405.4"3476158
iPhone 13 Pro390x8441170x25326.1"3460153
iPhone 13 Pro Max430x9321284x27786.7"3458153
iPhone 14390x8441170x25326.1"3460153
iPhone 14 Plus428x9261284x27786.7"3458153
iPhone 14 Pro430x9321290x27966.1"3460153
iPhone 14 Pro Max430x9321290x27966.7"3460153
iPhone 15390x8441179x25566.1"3461153
iPhone 15 Plus430x9321290x27966.7"3460153
iPhone 15 Pro390x8441179x25566.1"3461153
iPhone 15 Pro Max430x9321290x27966.7"3460153
iPhone 16390x8441179x25566.1"3461153
iPhone 16 Plus430x9321290x27966.7"3460153
iPhone 16 Pro390x8441179x25566.1"3461153
iPhone 16 Pro Max430x9321290x27966.7"3460153
Samsung Galaxy S5360x6401080x19205.1"3432144
Samsung Galaxy S6360x6401440x25605.1"4577144
Samsung Galaxy S7360x6401440x25605.1"4577144
Samsung Galaxy S8360x7401440x29605.8"4570142
Samsung Galaxy S9360x7401440x29605.8"4570142
Samsung Galaxy S10360x7601440x30406.1"4550137
Samsung Galaxy S20360x8001440x32006.2"4563141
Samsung Galaxy S21360x8001080x24006.2"3421140
Samsung Galaxy S21 Ultra412x9151440x32006.8"3.5515147
Samsung Galaxy S22360x7801080x23406.1"3425141
Samsung Galaxy S23412x9151080x23406.1"3425138
Samsung Galaxy S23 Ultra412x9151440x30886.8"3.5500143
Samsung Galaxy S24412x9151080x23406.2"3416138
Samsung Galaxy S24+430x9321440x31206.7"3513144
Samsung Galaxy S24 Ultra480x10661440x31206.8"3505145
Honor Magic6 Pro1260x28002800x12606.8"3453151
Honor Magic61200x26642664x12006.78"3435145
Honor Magic V22344x21562344x21567.92" (foldable)3402134
Honor Magic5 Pro1312x28482848x13126.81"3460153
Honor 90 Pro1224x27002700x12246.78"3437146
Honor 901200x26642664x12006.7"3435145
Honor 80 Pro1224x27002700x12246.67"3436145
Honor 70 Pro+1200x26522652x12006.78"3429143
Honor 70 Pro1200x26522652x12006.67"3429143
Honor X501224x26522652x12246.78"3431144