You can activate or deactivate auto-rotation outside the main screen.
How to enable auto-rotation on the main screen of Sony Xperia XA1 Plus:
Step 1: Touch and hold the main screen, choose settings.

Step 2: Activate the feature.

That completes the setup, wishing you all success.
