Good Morning Britain was not in breach of the broadcasting code over Piers Morgan’s controversial comments about the Duchess of Sussex, Ofcom has said.

The regulator had received more than 50,000 complaints about the programme in March, which focused on Harry and Meghan’s interview with Oprah Winfrey.

Although Ofcom said Morgan’s statements about suicide and mental health had the potential to be highly offensive, it has concluded that the show “contained sufficient challenge to provide adequate protection and context to viewers”.

An Ofcom spokesman said: “This was a finely-balanced decision. Mr Morgan’s comments were potentially harmful and offensive to viewers, and we recognise the strong public reaction to them.

“But we also took full account of freedom of expression. Under our rules, broadcasters can include controversial opinions as part of legitimate debate in the public interest, and the strong challenge to Mr Morgan from other contributors provided important context for viewers.

“Nonetheless, we’ve reminded ITV to take greater care around content discussing mental health and suicide in future. ITV might consider the use of timely warnings or signposting of support services to ensure viewers are properly protected.”

Morgan, who has since left the flagship morning show, called the ruling a “victory”, tweeting: “I’m delighted OFCOM has endorsed my right to disbelieve the Duke & Duchess of Sussex’s incendiary claims to Oprah Winfrey, many of which have proven to be untrue.

“This is a resounding victory for free speech and a resounding defeat for Princess Pinocchios. Do I get my job back?”