You need to have magisk installed first.
1. Download MagiskHide props and BusyBox module from Magisk Manager. Reboot
2. Install a terminal for your phone. I use termux here.
3. Open up termux, and type "su" to gain root access.
4. After you get root access, type "props" and enter. It will open MagiskHide Props editor.
5. Type 1 to edit device fingerprint. Type f to choose fingerprint. Look for xiaomi numbers and your phone type. Press y.
Thanks it worked like charm