He literally has no ideology or apparent political convictions of any kind. His position on any given issue can change 3 times in the same day and his disposition has no other pattern besides consistent inconsistency.
Go read Barr's resignation letter. Trump is a high variance process that needs to be smoothed to understand him. Recall that Barr did not need to make a name for himself. Nor does Barr ever need another job.
Or if you want to be more charitable, whatever opinion is most useful for the immediate moment. But I think that's an overestimation, lots of them aren't that coherent.
It's some combination of those things. Lots of them are just random filler and arbitrary ramblings, but the ones he gets pressed on repeatedly are answered in whatever way provokes a desired reaction at that exact moment. Some of it even seems to be remorseless and haphazard A/B testing. He's well beyond a severe pathological liar, as most such people would lack an innate desire to deceive with such intense frequency, and there might not even be a name yet for whatever trait he exhibits. Psychologists are just forbidden by their licensing body from commenting on a president's mental state while still in office.