Physical pixels and CSS pixels
A display has a fixed number of physical pixels, such as 2560 × 1600 on a 13-inch laptop. Websites do not work in those. They work in CSS pixels, a unit sized so that text stays readable whatever the pixel density, and the browser reports the screen in CSS pixels too. The device pixel ratio says how many physical pixels make one CSS pixel in each direction.
That laptop at a device pixel ratio of 2 reports a screen of 1280 × 800 to websites. An iPhone 15 has 1179 × 2556 physical pixels and reports 393 × 852 at a ratio of 3. This page multiplies the reported size by the ratio to give the physical resolution, and names it where it is a common size.