Force screen rotation

I’m trying to create an app that will force the screen to rotate 90 degrees.

I was already discouraged from looking for how to do it Please help…

I’m not mean that only the screen of the application will change laterally
I want that in the whole device will change as in this application…

you can do it only for your own app, but not for other apps on your device