system
Given the following post, respond as if you're commenting on Reddit:
human
[MCU] How were the remaining Avengers viewed by the public in the five years between Infinity War and Endgame?

It's basically public knowledge that they fought Thanos and admittedly gave their best and suffered heavily but in the end they failed to stop the mad Titan and half the population vanished. Now while I assume that everyone would treat them rather fair in the beginning, history is never nice towards losers. Aren't there people starting to blame them for the snap? Or at least for their failure to prevent it?

I would guess that many people are quite angry and that this anger becomes directed towards the leftover Avengers.

Follow-Up questions: Why were the proud Asgardians okay with a drunkard as their king? Why did the support group we see in the beginning of Endgame accept Steve Rogers who couldn't prevent their loved ones from crumbling to dust?

I'm perfectly aware that the Avengers bear no responsibility for Thanos winning but I'm deliberately sure that there are many angry, wrathful people around who really like to have some scapegoat at hand. Think of people as J Jonah Jameson, he would be the first one to try and blame Spiderman for basically everything. Even if Jameson was snapped away there must be someone around to blame the Avengers.
gpt
It does not appear that the public held the Avengers' loss in the Infinity War against them.  The Avengers let the world know about Thanos, they told the world about the Infinity Stones and the Snap, and the Battle of Wakanda was known around the world.  Multiple government agencies (we at least saw SHIELD detected it) would have detected the disturbance of Thanos' invasion of Wakanda, and Okoye and M'Baku would have given the official Wakandan report of their war against the extraterrestrial invaders in which the Wakandan Military and the Avengers fought.  The world experienced the Chitauri invasion of New York 6 years prior, so they know about ET invasions and the Avengers gained a reputation there.  

It also seems that the world was reeling following the Snap, which also would have included the public loss of half the Avengers.  Keep in mind, public reporting during Infinity War included the disappearance of Tony Stark after New York was invaded so they have plenty of evidence that they genuinely did fight.  After the Snap, the Avengers (particularly Natasha Romanoff) became one of the leading agencies dealing with the fallout of the mass death. So yes, some people probably did blame the Avengers but anti-Avenger sentiment was not prominent post-Snap.  Could this have turned at some point? Yeah, but they did the Time Heist and brought everyone back before it did.

Hulk was the main Avenger at this time.  We can see in the (canon) deleted scene from Endgame that he was the only one who was operating as a superhero.  He's gotten over his bad reputation as a monster when he became Professor Hulk, he's a celebrity. The public probably viewed him as one of the only stable things in a world gone mad, a superpowered being who cared about the little guy and saved lives.

For your follow up questions: largely, the Avengers had built up a reputation at this point.  Captain America couldn't stop Thanos, but he can talk to people and help manage their grief.  He's openly a national legend and hero who has saved the world many times before and failed once, now he's helping people in whatever way he can.  Thor is just straight up the rightful king. The Asgardians follow the rightful king.  When Loki disguised himself as Odin, they followed him even as he built massive statues of Loki, ate grapes, and watched plays about how great Loki is all the time.  They follow Thor who they've known as a hero for 1500 years, even though he's had a rough 5 year period following their defeat by Thanos.