I kind of feel like this is why the attempt at allegory with the mages in the Dragon Age series tends to be a bit weak at the seams.
So in Dragon Age, some people are born with the ability to cast magic. This basically makes them as powerful as a well armed and armoured warrior when they're just walking around unarmed. They also have a not particularly low chance of getting possessed by demons and turning into abominations, horrible and very powerful mindless murder monsters, and have to practice a lot of self-discipline to avoid this. It can happen to literally any mage at any point in their life if overcome by strong emotions or emotional instability
The way people get around this is they keep the Mages locked up in these special schools where they just study, hang out and train. These places are pretty comfortable and nice, and while they are full of trained mage hunters ready to kill you if you turn into a monster, they're decent enough if you don't. When a mage reaches a certain power level, the mage hunters, or Templars as they're called, have the mage deliberately face demonic temptation as a test. If they succeed, yay! Full rights to be a mage and work for the government! If they fail, they either turn into a monster and get killed OR if they're too emotionally unstable, they're made "tranquil" which is a sort of... magical lobotomy where the person's emotions are taken away; they have no personality or emotions, they're just a sort of drone that does basic tasks.
Now you'd think that given their high chance of becoming demons (and it's clearly a high chance given the outrageous number of abominations you have to fight on a regular basis in the game, which may be just an unfortunate by-product of the fact that Bioware thinks "encounter design" means "throw waves and waves of loads of enemies at the player" and has no idea how to make anything interesting with small numbers of enemies) that the narrative was framing it as a very unfortunate necessity that these mages do need locking up.
But as the series progresses, in Dragon Age 2 and then especially in 3, the narrative starts to really push Mages as an oppressed minority and very clearly as an allegory for marginalised people in a sort of X-men way. The problem is that mostly the mutants in X-men, while they have the "as powerful as an armed person" element, the vast majority have control of their powers and a not-insignificant number have completely benign or even purely cosmetic mutations. Some of them choose to deliberately use their gifts to do bad things, but mutants, unlike mages, don't have a high chance of turning into deadly monsters purely by accident. Yet the narrative in Dragon Age continually pushes the idea that the diplomatic and caring choice is always to let the mages be free, not stuck in towers, and that anyone who is even kinda cautious around them is an authoritarian bigot.
The problem with this is pretty obvious. Despite what bigots in real life say about marginalised groups, it's not true. The bigoted people at my old church said that gay people destroy families, even if we don't mean to and think we're being harmless, but of course, this is untrue and it's easy to prove with science that we gay people actually make pretty good parents and kids we raise are caring, stable and emotionally resilient. Similarly, despite racists saying black people are violent or making movies like "Birth of a Nation" depicting them stealing pure and innocent white ladies, there is no evidence to support the idea that this is anything close to true. Black people are just people and racism, or any bigotry is based on arbitrary bias.
In Dragon Age, it's proven time and time again that you know... maybe the Templars...kinda have a point? An awful lot of these mages DO turn into hideous killer monsters or use their powers to raise undead, maybe they should actually be monitored, even if it does suck if you happen to be born a mage that you will have that life forced on you. At most, making the lives of mages more comfortable, or swapping the towers for maybe like... a nice fenced estate where they can go outside and have hobbies seems pretty reasonable. Honestly the "mages should be completely free!" crowd kinda feel... a bit like the anti-mask protestors? Yes, wearing a mask so you don't spread a deadly virus is uncomfortable, and yeah it kinda sucks that it's legally enforced so you have to do it.... but it's to stop you from spreading a deadly freaking virus , geez, suck it up, asshole!
Unlike people with brown skin or whose sexual preference isn't restricted to cis people of the opposite gender, mages are actually, legitimately dangerous, and feeling scared of them or thinking they need to be controlled isn't pure bigotry. The same goes for stories where the marginalised group are legitimately dangerous because they're anthropomorphic wolves that are twice the size of the rabbit people who make up most of the world and have predatory instincts they must constantly fight against to avoid going on a rampage, that's just not comparable to marginalised black people who are literally just human beings who look a bit different but are hated on and treated like they're scary and dangerous based on no actual evidence.