A very good analysis of "how we got here" is Heather Cox Richardson's new book "Democracy Awakening." She documents the social upheaval since the 1970s that has led to the levels of polarization that we see in the US today.