Phase modulated spectroscopic ellipsometry measurements were performed in supercritical CO<sub>2sub> using a Mueller matrix approach allowing the explicit assessment of the cell windows effect on the measurements. The adsorption of CO<sub>2sub> on thermal SiO<sub>2sub> and the swelling of PMMA thin films on a silicon substrate were studied from atmospheric pressure up to 13.89 MPa at 35 and 50 掳C. A systematic analysis of the deviations between experimental and calculated spectra reveals the presence of a temperature gradient in the vicinity of CO<sub>2sub>'s critical point where large density fluctuations are present. The temperature gradient produces a graded CO<sub>2sub> refractive index resulting in a pressure-dependent angle of incidence. This mirage effect is analyzed with a simple model that considers the equation of state for CO<sub>2sub> allowing the evaluation of the temperature gradient. Our results are intended to provide a better understanding of spectroscopy ellipsometry studies in supercritical CO<sub>2sub>.