As well as organisations like Cambridge Analytica and SLC Group.
https://en.wikipedia.org/wiki/Cambridge_Analytica
Who controlled enough information in the mainstream social networks to swing the votes both on Brexit and Trump. Each of which was unpredicted by the polls. It is no wonder the Democrats were clueless. The tactics of CA/SLC were clear and unequivocal. Make the leaps in lies and fabrications as close to the end as possible, to smother the necessary time needed to refute. A late and unanswerable surge, if you like. Because it takes less than a heartbeat to construct and communicate a prejudicial lie based on fear, but the substantially longer speed of reason to refute it.