You may have "power saving" enabled under Settings->System->Power. It will put the Roku into a power saving mode after 20 minutes which will turn off the output from the Roku.
Roku Community Streaming Expert
Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.
I am not a Roku employee.