Hey there, To fix this, go to settings, then Display and Brightness, and find the option called Auto Lock.
Select that and then change the setting to never.
This is less secure though, since if you do not always manually lock your phone with the side button, someone could get into it easily if you left it unlocked. But you could always change the setting back when done using the app for the day.