Having the same issue on a REDMI Note 10 Pro with MIUI Global 12.5.7
Doesn't seem like a hardware issue, most likely a bug or hidden setting.
Tried all the suggested options changes without success.
Didn't try the app suggested by @stegal yet because it has mixed reviews on the play store. Can...