Choose Version Number...
In the Phone Information section, select Build Number repeatedly until your device notifies you that you are now a developer. Then, go back to the Settings screen, search for the Developer Options. Refer to the guide
activate developer optionson Android.
Step 3: Disable apps when locking Android screenAfterward, we search for the Do not continue activities option and choose to enable this feature. So, every time the phone screen is locked, it means that the running apps are forced to stop.
In this way, we have completely turned off all apps when the device returns to hands-free or locks the screen. Additionally, you can also turn off background running apps on your Android. If you don't know how, please refer to the guide.
turn off background running appson Android. Wishing you all success.