How do I stop apps from resetting automatically?

Sometimes when I'm on the YouTube app on my iPad, the screen suddenly flashes black and then takes me back to the main app screen. It usually does this when I'm in the middle of a video, and because the app reset it takes forever for me to find the video I was watching.
You could try to uninstall and reinstall the YouTube app.

Original thread: https://forums.imore.com/threads/how-do-i-stop-apps-from-resetting-automatically.329288/