In 2004, George W. Bush won the presidency by a razor-thin margin, the lowest winning margin in U.S. history. It's an interesting fact that that was the only time since 1988, the election of Poppy Bush, that the Republican candidate won the popular vote.
Clinton won it in 1992 and 1996; Gore won it in 2000, though he lost in the electoral college. After W.'s narrow win, Obama won the popular vote again in 2008 and 2012, and Clinton won it by 3 million votes in 2016.
Put that next to another interesting statistic: The winner of the popular vote has lost the presidential election twice in modern U.S. history -- and those losses resulted in the election of first W. in 2000, and then Trump in 2016. Disastrous anomalies.