These are the typical paths:
Check if the issue occurs when the phone is in Safe Mode. If not, the issue is likely caused by an application in use while the phone is not in Safe Mode. Most third-party app issues can be resolved by updating the app or the phone.
A factory data reset can also resolve some software issues.