Apple phone screen lock while camera app is open

My phone has been autolocking even when I have the Wyze camera stream up. I’ve had the camera for several months and this is the first time its done this. I used to be able to have the video stream up for hours without the phone locking. Has anyone else encountered this problem? I suspect the new iOS update is the culprit. Are there any fixes?