Get player position below camera position

Hi, I’m making an endless runner upwards, so the thing is that at some point the player will fall down, and I want to make a game over when the position of the player in Y is below the camera position in Y, and i can’t see the player in screen , the game is over.
player.position.y < Camera.main.y… something like that.
My camera is following the player in Y
And if that condition is True, GameOver panel appears.
I’ve tried some different things like orthographiccSize, Screen.width, and height.

Attach a invisible object to the camera (as a child). When the player touches the object let it be game over.