My emulated android device has a scale value (MediaQuery.devicePixelRatio in flutter) that is different from the one of my physical device (Samsung Galaxy S21 Ultra), so all sizes are different on the emulated device (3.0x) than on my physical device (3.5x). I have made sure that the device size and screen resolution is set correctly in the emulator. I guess the problem is that the pixel ratio of 3.5x doesn't fall into the "official" density buckets (xxhdpi has 3.0x, xxxhdpi has 4.0x).
How can I change the devicePixelRatio in the emulator, so it correctly reflects how things will look on my real phone? And why does it deviate in the first place?