The settlement comes just a week after Meta was dragged to trial by four US states.

Meta has agreed to pay up to $17bn in a landmark settlement to dozens of US states and territories over a lawsuit that alleged that the social media giant knowingly caused harm to children.

Alongside the proposed settlement, the social media giant has also agreed to make major changes to its products, and limit how much time minors can spend on its platforms. It also agreed to ban features including beauty filters and like counts.

The $17bn penalty will be paid to the states over the course of 10 years, the California Department of Justice said. California alone will receive $1.5bn to $2.1bn if this settlement is approved by the court.

“Today, we have secured a settlement with Meta that will make social media less dangerous for our kids and make a world of a difference for children and their families,” said California Attorney General Rob Bonta.