It wasn't until the companies waited until right after the election (almost immediately, and the timing set off all kinds of alarm bells for a lot of people) to announce the vaccine was ready that the narrative flipped, and even then I dont seem to recall Trump personally being skeptical of the vaccines. Do you have a link to that?
A large part of the president's job is delivering messages to the public; and, overall, Trump's message is "nothing to fear" - which was accurate in the sense that he was throwing resources at getting a fix, but HORRIBLY INACCURATE when it comes to the personal efforts people could do to protect everyone.
There's a reason that Red States didn't lock down as much and had higher case rates per capita, in general, and still do. The 12 disinformationists may have the most to blame about the anti-vaccine statuses; but the president didn't do any favors.
So Trump, with all his garbage spoken policy, behind the scenes was attempting to speed up vaccine research; and later, once either it wasn’t his pride as supreme commander on the line, or when he realized his speaking was where all the harm came from (with regard to covid), he changed his speaking and is now explicitly promoting the vaccines.