Auto-rotate will be lost if you wipe the persist partition.
You will need to install official Chinese stable firmware MIUI (zip for recovery through twrp).
Details (instruction from 4pda):
What you need to do if autorotate isn't working:
1) flash twrp in fastboot, reboot in twrp
2) TWRP:
wipe...