Yes, you can achieve that reveal effect using masking techniques combined with the right scene setup.
Here are some approaches:
Layered Geometry
Model the cup as two separate objects: an outer shell and the inner content.
Keep the outer shell hiding the content until the camera angle changes and the rim comes into view.
Clipping Plane / Boolean Mask
Use a clipping plane that moves with the camera to hide the inside until the right moment.
Once the camera passes over the rim, the inside becomes visible.
Shader-Based View Mask
Some engines allow shaders to reveal objects only at certain view angles or distances.
I’ve used a similar principle when building perspective-based reveals for Height Comparison Chart, where certain elements are only visible after the “viewer” moves past a certain point. The concept is almost identical—you’re just doing it in 3D space.