Thank you so much!
I was finally able to get what I wanted!
Like you said, I should have checked in the camera settings
use pawn control rotation. But it was breaking the automatic up or down for some reason. I tried different settings for a long time, but nothing worked. And then I got the idea to only disable this setting when there is interaction and it worked!
I am eternally grateful to you for teaching me all this.
Thank you so much! Thank you! Thank you! Thank you!