Temporal variability in transmission spectra of H2-dominated exoplanets: the influence of thermal evolution and stellar irradiation on atmospheric composition