Hide Objects behind Specific Plane
I went to recycling this answer and after simplifying I end up with the same node tree, that seems to me is working. So I guess I missed something ... so if you can explain missing part closer.