In the course of a few weeks, President Donald Trump veered from confidently assuring Americans his administration had the coronavirus outbreak “very well under control” to declaring a national emergency and tweeting all-caps caution about the pandemic that has upended every facet of American life.