Thank you for your asking. Kindly provide the information below so that we can better assist you.
1. Does the issue appear on the stock camera only or on other camera apps (e,g. Instagram) as well?
Please try clearing cache & storage of Camera (long press "Camera">App Info>Storage & memory>Clear cache/Clear storage), then try to re-install 3rd party camera apps and check again.
2. Please try to enter "Safe Mode". If the function works well in Safe Mode yet the issue remains out of Safe Mode, please check any disturbance from installed 3rd party apps.
# How to enter and exit "Safe Mode"
3. Also, please try "the Factory Reset"
Settings>System>Reset options>Erase all data(factory reset)
**Please note that once the Factory Reset is completed, all data, apps, settings and personal information will be deleted.