You can do it inside the ship. In a moving ship, the light will have angled path as opposed to a straight line when not moving.

Once the light hits the mirror and bounces back to the other mirror. The other mirror will be at a different position and angle of reflection won't be 90 degrees to the surface.

It has to be done is super fast speeds though.