Yes, when the screen is replaced, the fingerprint still works on miui 11 but when updating to miui 12 there will be an error, I have encountered many similar screen replacement devices.
you download any miui11 rom, boot the device into twrp and fomat data, then reboot into twrp, copy the rom...