Dynamical phase transitions on comb lattices