Calling it mental illness is a cop out. His manifesto quotes phrases routinely put out by the President and his biggest supporters. The guy made a calculated decision to drive 9 hours to an area with Hispanic people.
Then you have Trump smirking at the insinuation of shooting immigrants. For a young impressionable person, he was doing what he was told to.