Quite frankly it shouldn't and so could be a hardware issue @gailc64
Do try Safe Mode > https://www.samsung.com/uk/support/mobile-devices/how-to-start-my-galaxy-device-in-safe-mode/ turns off downloaded apps and themes etc which may highlight an app or theme that's causing conflict.
If this does not help and your phone's software is up to date I would suggest to contact Samsung directly and or use a Samsung Service Centre so the phone can be looked at.
Daily Driver > Samsung Galaxy s²³ Ultra 512Gb in Phantom Black.
The advice I offer is my own and does not represent Samsung’s position.
I'm here to help. " This is the way. "