Device orientation

Hey guys I need your help. I am struggling with an issue for like more than a month so I decided to ask in Stack Overflow but did not get the answer so I am posting everywhere I know someone can help.

This is the link for the question

Any help would be appreciated thanks in advance.

hi @bekzodrakhmtov,
it would be nice to reiterate (explain the problem again) than simply posting a link. That way you could get answers.