Well to solve this problem you have to clear the cache of your smartphone
[link|https://okadtech.com/redmi-note-10-pro-front-camera-issue-solution/|https://okadtech.com/redmi-note-10-pro-front-camera-issue-solution/|new_window=true]
I was also facing the problem but now my problem is solved.