If you want to permanently corrupt the TEE (Trusted Execution Environment) on your device, go ahead and use this crappy tutorial from
@johnr64 which tells you to flash the persist.img image. You will have broken hardware attestation and then there will be problems on stock ROM with locked bootloader when in future google will shut down safetynet servers and replace it completely with Play Integrity which checks your hardware attestation. At the moment the solution is a custom rom that passes safetynet or
Universal SafetyNet Fix magisk module by kdrag0n which "tricks" Play Integrity into thinking that the device is not capable of hardware backed attestation, which will force a fallback to basic attestation. More details on how this magisk module works can be found
here.
Edit:
If you have a problem with the message "find device storage corrupted", then don't flash persist.img image. Just don't touch it. If you haven't flashed persist.img then I've seen information on various telegram channels that flashing AOSP custom rom with android 12 and using it for 10 minutes then flashing stock MIUI can fix this problem. How much truth is in this, I don't know, because I no longer have Poco F3. I returned it under warranty, got my money back and bought another phone.