We analyze the observations of temperature and ozone measured by the Microwave Limb Sounder (MLS) during the period of 2005–2016, to investigate the vertical structures of temperature and ozone in the stratosphere and mesosphere during stratospheric sudden warming (SSW). We compute the height profiles of the correlation coefficients between 55 height levels of MLS temperature anomalies and compare them with the results of Whole Atmosphere Community Climate Model simulations for three major SSWs. We also construct the temperature and ozone anomalies for the events to investigate the changes in the temperature and ozone distributions with height. There seems to always be a relatively weak but broad negative correlation between the temperature anomaly at 10 hPa and temperature anomalies over the entire mesosphere during the period before SSW events. However, this pattern gets stronger in the lower mesosphere but becomes a positive correlation in the upper mesosphere and lower thermosphere after the onset of SSW. We also found that the temperatures from the simulations show a similar trend to the observational results but with smaller variations and the transition height from negative to positive correlation in the mesosphere is much lower in the simulation than in the actual observations.