Update camera application
Clear cache of the camera application
- Press the settings icon.
- Select Apps & notifications.
- Click on App info.
- Press the camera application.
- Chose Storage.
- Finally, press Clear Cache.
This procedure should fix the camera application from malfunctioning.
Use a third party camera application from Google PlayStore
If the issue still persists, try installing a third party camera application from Google PlayStore to use instead of the default camera application installed on your device.
If any of the above solutions are not working, then visit nearest repair centre to help you with the issue.