For example, take the DSM5 criteria for ASD, one type of neurodivergence. Here's just a single factor:
Deficits in nonverbal communicative behaviors used for social interaction, ranging, for example, from poorly integrated verbal and nonverbal communication; to abnormalities in eye contact and body language or deficits in understanding and use of gestures; to a total lack of facial expressions and nonverbal communication. (From https://www.cdc.gov/ncbddd/autism/hcp-dsm.html)
A formal diagnosis of ASD would involve a number of these factors. As you might imagine, if you stack enough things like that on a person, it'll tend to be noticed, even when they're trying to hide it.
In the context of being mean, upon being told that they were being a jerk, a person with ASD might think "ah shit, not again" or maybe "wait what, no I wasn't, it doesn't make sense that they'd be offended by that" or something along those lines. The nuances of the behavior and the motivations behind it will tend to be a little different than in a 'neurotypical' perceived as being a jerk.