The MAGPI survey: effects of spiral arms on different tracers of the interstellar medium and stellar populations at z 0.3