How can I stop the camera from switching back to the launcher? I am trying to use my camera to record some videos. I have it set up on the tripod and then go and set up whatever I'm shooting and after 2 minutes, the camera always exits and goes back to the launcher screen. So I have to restart the camera again, and then re-do whatever settings I had (like zoom in again). Is there a way to have the camera app just stay open without automatically closing? Thanks.

Edit: I'm using a Samsung Galaxy 7 with the latest OS. And I'm referring to the built-in camera app. (If there's a better alternative, I'd be glad to hear it. I've seen reviews of several but nothing that seemed compelling enough to try.)
As an alternative to this answer from beeshyams, if you cannot afford to replace your preferred camera app than try screen pinning that app.

You can pin an app's screen to keep it in view until you unpin it.
For example, you can pin an app and hand your phone to a friend. With the screen pinned, your friend can use only that app. To use your other apps again, you can unpin the screen.

Alternatively, you can use a kiosk-mode app from Play Store to temporarily restrict usage of the device to your camera app.