One possible plot could be that everyone believes false rumors about Harry being a dark wizard. His friends from Hogwarts, including Ron and Hermione, turn their backs on him. Harry then has to find a way to prove his innocence all alone, perhaps by going into hiding and secretly investigating who spread the lies.
One possible plot could be that Fleur betrays Harry in a Triwizard Tournament - related task, perhaps by secretly helping the other champions. Another might be that Harry discovers Fleur has been passing information about the Order of the Phoenix to the wrong side. Maybe Fleur betrays Harry's trust regarding a personal secret, like his feelings for Ginny, and uses it to her advantage in some way.
In some fanfictions, it could be a misunderstanding that spirals out of control. Hermione and Ron misinterpret one of Harry's actions. For instance, Harry might be trying to protect them in a secret way, but it looks like he's up to something bad. Their lack of trust then grows, and they end up betraying Harry, perhaps by not coming to his aid when he really needs them, which could have serious consequences for Harry.
Well, perhaps in the fanfiction, it shows that Harry's parents made a deal with Voldemort before their deaths. They promised to hand Harry over in exchange for something, like power or protection for themselves. But then things went wrong and they ended up dying, still leaving Harry feeling betrayed as he discovers this truth later. It could also be that his parents were actually working against the Order of the Phoenix all along and Harry was just a pawn in their real plan.
In some fanfictions, it could be that Harry discovers a dark secret about the wizarding world that his friends don't believe or are too afraid to accept. His friends, thinking he has gone mad, side with the established order. They then betray Harry by reporting his so - called 'crazy ideas' to the Ministry of Magic, leading to Harry being hunted.
One possible plot could be that Tails is betrayed by a close friend who becomes jealous of his intelligence and skills. For example, Sonic might start to feel overshadowed by Tails and in a moment of weakness, turn against him. This could lead to Tails having to fend for himself and prove his worth all over again.
One possible plot development could be that Harry loses all faith in the wizarding world. He might go into hiding, constantly looking over his shoulder. Another could be that he decides to seek revenge on those who betrayed him, leading to a dark and dangerous path for him. Maybe he also finds an unexpected ally who helps him see that not everyone is against him and gives him the strength to rise above the betrayal.
One possible plot could be that Boruto is betrayed by his friends due to a misunderstanding. For example, they might think he has turned to the dark side because of some false evidence planted by an enemy. Another could be that Boruto is betrayed by the village he loves. Maybe the village leaders suspect him of a crime he didn't commit and turn against him.
One possible plot could be Percy being framed for a crime he didn't commit by the Olympians. Maybe they needed a scapegoat for something that went wrong in the mortal world that they didn't want to take the blame for. Another plot might involve Percy discovering a dark secret about the Olympians that they don't want him to reveal, so they turn on him to keep him silent. It could also be that a new powerful enemy has influenced the Olympians against Percy, perhaps by spreading false rumors or using some form of mind control on them.
Maybe there's a prophecy at camp that some misinterpret to mean Percy will bring destruction. So, the campers, out of fear for their safety, betray Percy. They could lock him up or try to send him away, even though Percy has always been loyal to the camp. He then has to find a way to either clear his name or find a new place where he belongs.
Perhaps in the fanfiction, Natsu is betrayed by someone he trusts in a mission. For example, they might leave him behind in a dangerous situation to fend for himself while they take the credit for the mission. Or it could be that a love interest betrays Natsu by choosing someone else over him due to some false perception or external pressure.