Step 1. After booting up, the device will be stuck in bootloader logo glitch and will not recognize the MIUI OTA update files. You need to check whether the firmware files are correct or not. After checking the files, you will have to reboot the device to complete the installation.
Step 2. Once the phone boots up, press and hold Volume up, and Power button for 10 seconds.
Step 3. After 10 seconds the MIUI logo screen will show up.
Step 4. Release the Power button and hold the Volume up key.
Step 5. When the device is recognized by the bootloader, you can see the MIUI logo screen. If you have flashing issues while flashing the firmware, then you need to use adb commands to flash the latest official firmware via Fastboot.
Step 6. After flashing the firmware, check for any issues and reboot the device.