Phone screen stays on indefinetely during session

I use sessions to help myself sleep, but after the guided part of the session, the phone screen stays on until I turn it off or exit the session. I don’t want to get up and shut off the screen right as I’m drifting off to sleep, but I also don’t want the screen on all night. Can you make it so that the screen turns off or the session ends at some point after the spoken part?

I have auto-lock enabled on my iPhone for 5 minutes, but while the session is active it ignores that setting as though I’m watching a movie.