The present invention relates to a two-compartment aerosol device, comprising a styling composition in a first compartment and a compressed gas chosen from air, nitrogen and carbon dioxide, and mixtures thereof, in a second compartment. Said styling composition comprises at least one compound (A) chosen from an anionic carboxylic polymer free of urethane units, a linear sulfonic polyester and a cellulose-based compound in an alcoholic or aqueous-alcoholic medium which comprises at least 5% by weight, relative to the weight of said composition, of a C1-C4 monohydric alcohol. This aerosol device may constitute a hair lacquer.The invention also relates to a styling process using the device of the invention.