How do you ensure compatibility with a variety of devices and screen sizes?

The mobile apps are native and developed in Swift (iOS) and Kotlin(Android). Native apps are more suited for School users as they offer better performance and adhere to the design guidelines and UI conventions of iOS or Android.