Disable screen auto-rotate on iPhone XS Max
I found it.
Steps :

From the top, do left swipe to open Control Center.
Then, there is an option Portait Orientation Lock.
Tap on that to make it On. That's all, the screen is locked.

Screenshot :