Channel 4 has pulled an episode of Gogglebox over fears it may have prejudiced the forthcoming trial of the former Scottish first minister Alex Salmond on sexual assault charges, including attempted rape.

The programme, where families are recorded at home making comments about the previous week’s television, is likely to have been seen by millions of people when it was first broadcast on Friday night.

In the episode members of the Derby-based Siddiqui family are seen making comments about Salmond while discussing the performance of Scotland’s current first minister, Nicola Sturgeon, during a televised leaders debate.

Both Salmond’s legal team and the Scottish Crown Office, which is responsible for prosecuting the case, are aware of the broadcast, according to the Scottish Sunday Mail.

A spokesperson for Channel 4 confirmed it was aware of the concerns. “We are looking into this and have taken the episode from the schedule in the meantime.” A planned repeat of the programme has been cancelled, while the episode of the hit programme is also unavailable on the channel’s All 4 catchup service.

Scotland has far stricter rules on what can be said in relation to live court cases than the rest of the UK.

Salmond is due to stand trial in March charged with 14 offences, including an attempted rape, one intent to rape, 10 sexual assaults and two indecent assaults, allegedly committed while he was the first minister and the Scottish National party leader.

Some of the incidents are alleged to have taken place in a bedroom at Bute House, the property in Edinburgh used as the official residence of Scotland’s first ministers.

Salmond has said he will vigorously defend himself against all the charges when the case comes to court.