One of the main reasons for bad things to happen is the lack of education (which, in turn, leads to resist to change) and, therefore makes people prone to believe to unbelievable things.
Social platforms like Twitter should have long had things like "fact checking" ANY statements and should have restricting not only violence glorifying posts, but also the ones with racial or sexual discrimination and all the others .
It is late, but I like seeing it happen at least for the person with the most "glorifying" record in dividing a society.
At some point you have to consider the history of public education and it was just a tool for controlling and repressing individual thought, give busy work to lower class kids so they stay out of trouble, don't grow up to question the system. What is usually taught there? Obey authority at all cost, getting status symbols from authority is most important (not actually learning), do not interact with people different from you (why the grade separation? shouldn't people learn at their own pace?), learn not what interests you, just follow the damn syllabus choosen by someone else, don't stand out, just memorize stuff, don't read actual primary sources, just the predigested/rehashed summary. I mean, sure there might be exceptions but it's pretty much the same everywhere
What countries you think are doing a great job and why?
I agree it could be better, and it some places it could be a lot better. But when compared with the alternative -- no public education at all -- you'll see why it's a necessary foundation to democracy.