The depiction of time dilation that is typically used to describe the situation,
shows the stationary photon clock, with mirrors one above the other in the observer's frame and the photon "bounces" back and forth between them.
In the moving frame the mirror pair moves as a unit let's say to...