It is probably to do with the settings.. Its prob set to disconnect after X number of mins, The defaul is usually 20 mins though if idle.
Please state which OS is in use and we shall tell you how to alter the settings.
iPhone X review
How to find a font: Discover the name of a typeface with these apps
The best iPhone for 2017
Comment créer un compte PayPal pour payer en ligne ?