Should I use a comma in this sentence?

You ought to write it this way:

"The Disney version, generally considered both racist and sexist, portrayed the female characters in stereotypical roles and presented ethnically diverse characters with stereotypical features."

Comma before generally and after sexist. "Generally considered both racist and sexist" is a non-essential clause (it gives additional information about the Disney film).