Some Labour MPs and officials have privately expressed frustration that Badenoch and Burnham have been able to get ahead of the government on the issue.

“It’s where we will inevitably end up. It’s what the public and parents want. I don’t know what’s keeping us so long,” one senior government source said.

This week’s confrontation with X over Grok AI, on which Downing Street is claiming “vindication”, might embolden the government to have another battle with the big technology companies.

The issue could come to a head next week, with the House of Lords likely to vote on an amendment to the Children’s Wellbeing and Schools Bill which would prevent under-16s from accessing social media.

It has been tabled by Lord Nash, a Conservative former education minister, but is jointly-sponsored by Baroness Benjamin, the Liberal Democrat peer and former children’s TV presenter; the Labour peer Baroness Berger and Baroness Cass, an independent member of the House of Lords, who is a paediatrician.

Those involved in the amendment are optimistic it will pass.

If it does, the House of Commons would have to hold a binding vote on the issue in the next few months.

Asked if the government would implement a ban, Streeting told BBC Radio 4’s Today programme that social media could create “greater connections and a sense of belonging” but also came with risks including the “harm of addling the developing mind of young people”.

“And then there’s really sinister, extreme stuff,” he added citing exposure to pornography, grooming or violent extremism.

“We’ve got to think about traditional approaches in the modern setting.

“No one would dispute when I was growing up that being able to use tools like hammers or a saw was a good skill set for us to learn as young people.

“What would never happen was a nursery or primary school child being given a box of nails and left unattended with it. That’s kind of what we have done with mobile phones.”

The Molly Rose Foundation, a suicide prevention charity, has expressed concerns about the “unintended consequences of bans” arguing that they risk “pushing harm to unregulated areas rather than making products safe by design for children”.

Andy Burrows, chief executive of the foundation, said: “Government should respond to overwhelming calls from parents for decisive action by fixing regulation with evidence-based solutions, not simplistic and populist calls for social media bans that would risk causing more harm than good.

“They should immediately publish the review into smartphones and social media that they have been sitting on for six months so parents can see what the evidence actually says, and government can act swiftly and decisively to protect children by doing what’s right not simply what’s easy.”

A spokesperson for the Department of Science, Innovation and Technology said the study would be “published in due course” adding: “We are considering next steps in light of its conclusions.”

“We are committed to keeping children safe online and will continue to develop policy informed by the best available evidence.”

Under the Online Safety Act, tech companies are required to prevent young people from encountering harmful content relating to suicide, self-harm, eating disorders and pornography.

Platforms which do not comply with the law could face a fine, jail time, or in the most serious cases a ban in the UK.

Some social media companies already place limitations on how teenagers can use their platform; for example, Instagram requires users to be at least 13 years old.

Meta has set up Teen Accounts for its Instagram and Facebook apps, which allows parents to control the safety settings on their children’s accounts and set time limits on how long the user can spend on the app.

The company also says it automatically blurs messages which it detects contain nudity and hides offensive messages sent to Teen Accounts.