How to get the camera bounds at a certain depth?

I want to have a gameplay mechanic where if the player falls out of the camera view or touches the camera borders, they lose. I used WasRecentlyRendered but that doesn’t as expected on packaged builds…

So I’m wondering how do I get the camera bounds at a certain depth, so I can add a trigger box there and handle it using collision?