The fast stellar winds can blow bubbles in the circumstellar material ejected from previous phases of stellar evolution. These are found at different scales, from planetary nebulae (PNe) around stars evolving to the white dwarf stage, to Wolf-Rayet (WR) bubbles and up to large-scale bubbles around massive star clusters. In all cases, the fast stellar wind is shock-heated and a hot bubble is produced. Processes of mass evaporation and mixing of nebular material and heat conduction occurring at the mixing layer between the hot bubble and the optical nebula are key to determine the thermal structure of these bubbles and their evolution. In this contribution we review our current understanding of the X-ray observations of hot bubbles in PNe and present the first spatially-resolved study of a mixing layer in a PN.