What structural element of Earth causes the disruption leading to stellar twinkling?

Answer

Ever-moving layers of air with varying temperatures and densities

The atmosphere acts like a constantly shifting lens composed of countless pockets of air with varying temperatures and densities, which causes the starlight to be bent randomly.

What structural element of Earth causes the disruption leading to stellar twinkling?
lightstarskybright