There are a few things you can try to solve this issue:
1. Boot into Safe Mode: Try booting into Safe Mode to see if the issue persists. If it doesn't, then the problem is likely caused by a third-party app. Uninstall any apps you installed recently, especially the ones that modify the system.
2. Wipe Cache: Try wiping the cache partition from the recovery mode. This will clear any temporary files that may be causing the issue. To do this, turn off your phone, press and hold the power button and volume up button, and release both buttons when the phone vibrates.
3. Factory Reset: If the problem persists after trying the above steps, you may need to perform a factory reset. This will erase all data on your phone, so make sure to backup important files before doing so. To perform a factory reset, go to Settings > System > Reset options > Erase all data (factory reset).
4. Flash Stock ROM: If none of the above steps work, you may need to flash the stock ROM on your device. This will restore your phone to its original state. You can find instructions on how to flash the stock ROM for your specific device online.