The invention relates to an aerosol device containing a cosmetic composition comprising: (i) from 0.1% to 15% by weight relative to the total weight of the composition, of one or more water-insoluble calcium salts, (ii) one or more fixing polymers, (iii) one or more C2-4 monoalcohols, and (iv) one or more propellants. The invention also relates to a process for shaping the hair and/or for holding the hairstyle, using the aerosol device of the invention.