I do quite firmly believe that Trump is manifesting behaviors commonly associated with dementia.
That however, is not properly qualified as mental illness. It is more a disease process that afflicts a significant subset of humanity as they age, which causes the brain to atrophy.
Nevertheless, I think that alone should disqualify him for office.