A cosmetic agent, in particular a styling agent, containing, in a cosmetically acceptable carrier, a) at least one copolymer A made of at least one monomer A1 selected from acrylic acid, methacrylic acid, acrylic acid alkyl esters, and methacrylic acid alkyl esters, and at least one amphoteric monomer A2 selected from (meth)acryloylalkylbetaines of formula (A2-I) and (meth)acryloylalkylamine oxides of formula (A2-II), such that in formula (A2-I) and in formula (A2-II), R1 denotes H or CH3, R2 and R3, mutually independently in each case, denote optionally branched C1-10 alkyl, and n denotes an integer from 1 to 20, and b) at least one film-forming and/or setting amphoteric polymer B different from copolymer A and use of the agents for the temporary deformation of hairs.