It's not a hard thing to implement on their end and should be mandated by a judge as you said.
Filing this away for later use.
It often comes up in (anti) free-speech trials, where the government compels the perpetrator to issue a public apology to the victim. Forcing them to buy an ad in a newspaper for example is not unheard of.
As far as I understand, Americans consider this to be "compelled speech" and hence prohibited, but I might be wrong on this.
An interesting variant I’ve seen on anti-smoking banners at convenience stores is “A federal court has ordered a Philip Morris USA to say: …”
"We will allow more speech by lifting restrictions on some topics that are part of mainstream discourse and focusing our enforcement on illegal and high-severity violations."