I would like to know if the screen size of the Telegram mini app is fixed on the PC (Mac/Windows) or mobile (iOS/Android) versions.
I have noticed that during development, some people’s display heights vary significantly. I want to know if this height is not fixed or if it is due to differences in devices.
2
Answers
Screen size vary from a device to another, I assume that you mean aspect ratio. For Mobile it’s usually 9:16.
No, it is not, I realized this when I looked at the viewport on the iPhone XR, iPhone 14 Pro Max and iPhone 15. There is a different viewport everywhere, the only solution, in my opinion, is to disable scaling and use media queries.
UPD. I looked at the viewport on different devices and asked gpt to estimate the rest of the devices. In general here is the table