I'm not sure if X actually caused that, given that even 4 years ago people were suggesting dementia in both Biden and Trump, and that Harris was kinda just parachuted in rapidly and without sufficient preparation when the fear about Biden having dementia got too loud to ignore.
And also that X was never as popular as Facebook.
On the other hand, the polls seemed pretty close, so perhaps it made enough of a difference on the margin.