Go to Settings > System > Reset options > Erase all data (factory reset) > Erase all data. After the erasing process, set up ...
Sometimes, things go wrong, making your device's hardware and software experience less than ideal. It may be related to a change you made or a newly installed system update that is causing glitches.