The 'stirring up hatred' offence, yes:
'New stirring up offences
The 2021 Act maintains the existing stirring up of racial hatred offence, with some minor modifications.
The test for the offence remains the same as it is under the Public Order Act 1986, so that for a stirring up racial hatred offence to be committed, a person must behave in a manner that:
a reasonable person would consider to be threatening, abusive or insulting, or communicates to another person material that a reasonable person would consider to be threatening, abusive or insulting, and
either–
in doing so, the person intends to stir up hatred against a group of persons based on the group being defined by reference to race, colour, nationality (including citizenship), or ethnic or national origins, or
a reasonable person would consider the behaviour or the communication of the material to be likely to result in hatred being stirred up against such a group.
The 2021 Act also creates new stirring up of hatred offences for each of the following characteristics:
Disability,
Religion,
Sexual orientation,
Transgender identity,
Age,
Variations in sex characteristics.
For these characteristics, an offence is committed when a person behaves in a manner that:
a reasonable person would consider to be threatening or abusive, or communicates to another person material that a reasonable person would consider to be threatening or abusive, and
in doing so, the person intends to stir up hatred against a group of persons based on the group being defined by reference to a characteristic as listed:
age,
disability
religion or, in the case of a social or cultural group, perceived religious affiliation,
sexual orientation,
transgender identity,
variations in sex characteristics.'
(Taken from the Scotgov website, I can't c&p the link and text at same time)
It's all clear as mud. I've read it all back to.front and still find it confusing. Always good to have vague, confusing and unclear law. Even the police struggle with it, from what I hear.