Well, for Harry, it would be a huge emotional blow. He trusts Hermione deeply, so her betrayal could make him question his own judgment. It might also make him more isolated as he loses one of his closest allies. For the wizarding world, if Hermione was on the wrong side, it could lead to chaos as she is very intelligent and powerful. Her knowledge of spells and magic could be used against the good side.
At first, Harry would probably be in shock. He has always considered Hermione one of his closest friends, so her betrayal would be a huge blow. He might not believe it at first and try to reason with her.
In some fanfictions, Hermione might betray Harry due to a misunderstanding. For example, if there were false rumors spread about Harry being involved in dark magic or having a secret, evil plan. Hermione, being a stickler for the rules and the greater good in the original series, might be misled into believing these rumors and thus betray Harry.
Fanfiction often delves deeper into Hermione's emotional side in these betrayal scenarios. We see her reaction to being betrayed, which can range from shock to anger to deep sadness. For example, she might initially be in disbelief when a close friend turns on her. Her intelligence also plays a role. She may use her wits to figure out why she was betrayed and try to find a way to reverse the situation or expose the betrayer.
Another idea is that there's a misunderstanding. Hermione might think Harry has done something truly unforgivable, like accidentally harming a loved one of hers in a spell gone wrong. Without proper communication, she jumps to conclusions and starts working against him, thinking she's in the right.
Hermione might seek revenge. Given her intelligence and magical abilities, she could use her skills to get back at Harry and Ron for their betrayal. This could lead to a big rift in their friendship and even endanger their common goals in the wizarding world. She might also side with other characters who are against Harry and Ron, changing the whole dynamic of the story.
Another possible betrayer could be Dumbledore in some darker fanfictions. He might have a hidden agenda all along. He could be using Harry as a pawn in a much larger and more sinister game. And when Harry starts to figure things out and goes against Dumbledore's plans, Dumbledore betrays him to keep his own plans on track.
At first, Harry might be confused. He would try to figure out what went wrong. He might search his memory for any signs that could have led to this betrayal. Then, he would likely experience a range of emotions from sadness to rage. Depending on the nature of the betrayal, he could either try to win them back by showing them the truth or decide that they are no longer worthy of his friendship and focus on his own path, maybe even leaving the wizarding world for a while to clear his head.
It could be that a prophecy reveals something that makes Ron and Hermione think Harry is a danger to the wizarding world. They might decide to betray him in order to protect the greater good. However, as time goes on, they could realize their mistake. But by then, the damage to Harry's trust would already be done, and he would have a hard time forgiving them.
Yes, there might be. Fanfiction platforms are filled with a vast variety of stories. You can start by checking major fanfic sites like Archive of Our Own or Fanfiction.net. Just search for the relevant keywords and you may find what you're looking for.