It's also a nonsequitur fallacy from "I'm on post #2" Logos to suggest that all voters had one motivation.
Yes, millions of racists voted for Trump. No, not all Trump voters are racist. Many buy into his businessman better for economy / will fix inflation with magic narrative. Some have a similar reaction to transgender issues that we saw years ago to gay marriage. Others still just want to see the system as a whole get dismantled. There is overlap in these groups, too... This isn't exactly hard logic.
But yes, racism was also involved. Full stop. https://en.wikipedia.org/wiki/Racial_views_of_Donald_Trump
Try harder