The senile aspect of Trump seems pretty managable to me at the moment. Its no where near where Biden is at in that regard. But yea there is some clear decline from age as well.
The inappropriate things he says is not unconnected with him being a moron. Morons have a high tendency towards prejudice in general.