I think Trump's just been running a simple popularity-seeking loop for a while. Do a thing; if his people like it, do it more; otherwise do it less.
I've heard that even Hitler was like this: that he didn't start out hating Jews, but repeatedly reacted to the fact that he got louder cheers whenever he blamed things on Jews. But I don't know how to verify if this is true.
Hitler was enthralled by Henry Ford, and copied what he learned about anti-semitism.
https://www.thehistoryreader.com/historical-figures/hitlers-...