To solve a temporary solution you can go into settings -> display -> sleep -> 30 min
Find an app that supports Keep Awake
Keep Awake keeps the device unlocked and awake during the use of the app in question
This other one will result in digging deep in to your devices settings that are normally hidden called Developer Options for this
- settings
- about Deice
- tap Build Number till you see Developer Options Enabled
Back out once
Important Notice
Misusing and or abusing Developer Options has a chance to cause undesirable operation, and can cause apps to crash and or become unstable in turn can cause ANR (App Not Responding) messages to appear to the point of having to reset your device to factory settings. By continuing from here I am not responsible to any loss of data and or any other form of loss pertaining to the device(s) and or its data this is done on Continue at your own risk you have been warned
Scroll to Developer Options
- if not turned on do so at this time
Please make note of the Warning
- check Stay Awake
please note this option will only keep the device on while charging