Dynamical phase transition in the transverse field Ising chain characterized by the transverse magnetization spectral function