How can I hide a mesh renderer using another invisible mesh?

Hello , i am developing a mobile application and i need to hide a part of a mesh, specifically the one behind a transparent mesh.

Referring to the image i need that the part of the cube that is behind the sphere should not be visible BUT in the final scene the sphere will be transparent.

A typical example is how the Hololens occlude the virtual objects using the scanned mesh, that is still not visible but hide the objects behind.

Maybe i missed something that is really simple.
I hope that the explanation is good enough.
Thank you guys.

There is a built-in way to achieve that using the shader VR/Occlusion.

I completely forgot about that, sorry.
I feel very stupid .
Hope this will be useful.