I have a Xiaomi Redmi Note 9 Pro and i had the same problem. I was trying the above suggestions but it didn't work for my phone. So i post a solution that might help others too!
1. Enable developer mode on your phone.
2. Enable "USB Debugging" from the settings for developers and disable "USB...