A new state law mandates warnings for young users on platforms with features that 'encourage excessive use'.