How to make a responsive application on all devices

I created an application using the Sliding_Layout extension, and after completing the program, I tried it and discovered that it is not responsive to all devices as shown in the videos below. The application works normally on devices with a screen size of 18:9 and a screen size of 16:9, but when I run it on a screen size of 20: 9 works abnormally The first video has a screen size of 18:9
And it works normally
The second video has a screen size of 20:9
It works abnormally

You can try :point_down: