Spontaneous emergence of a spin state for an emitter in a time-varying medium