iPhone 14 Correct Dimensions? - Confusion

I’m going to design a UI app for iPhone, but I’ve found;
On Figma, iPhone-14 dimensions are 390x844, but when I screenshot from my phone the dimensions are 1170 × 2532.

  1. What dimensions are correct?
  2. What dimensions do you start to work with as a professional mobile app designer?