In reply to Pedro50:
"Till Death us do part" was definitely a comment on the times with the character of Alf Garnett (play by Jewish Warren Mitchell who had an interesting take on it here.
https://www.thejc.com/culture/tv/i-fear-more-laughed-with-alf-garnett-than-...
"I once put this to Mitchell. Clearly, I was not the first. "Look," he said, not bothering to hide his irritation, "you can't help it if people are idiots. I had a bloke come up to me one day and say, 'I love that show of yours Alf, especially when you have a go at the coons.' I said, 'Actually, we're having a go at bastards like you.'"
Racism on TV was common at the time programmes like "Love thy neighbour" poked fun at it while others like "Mind your language" and the comediens only re-enforced the stereotypes. Remember the Black and White minstral show? And as for casual sexism well....