Camera app can’t initiate the camera
I have an iPhone XS and it works really well. Suddenly, when I opened the camera app, a black screen appeared, it didn’t allow me to switch to the front camera, the problem is that I can initiate the camera from apps like WhatsApp and messenger and works really fine, that made things even more complicated. What should I do since the problem is clearly not a physical one?
PS: the two images attached, the one with the black screen is from the camera app, and the other is from WhatsApp.
iPhone XS, iOS 18