It was Olenna Tyrell and Petyr Baelish. They conspired to have Joffrey poisoned at his own wedding.
The one responsible for Joffrey's death in the novel was a combination of Olenna Tyrell and Petyr Baelish. They saw an opportunity to eliminate Joffrey and seize more control and influence in the game of thrones.
If Arya killed Joffrey in a fanfic, one possibility is that she would become an instant target for the Lannisters. They would stop at nothing to avenge Joffrey's death. Arya would have to go into deeper hiding or rely on her Faceless Men training even more. Maybe she'd have to flee across the Narrow Sea and start a new life in Essos, constantly looking over her shoulder for Lannister assassins.
Joffrey was a cruel character. It's hard to imagine a traditional love story for him. His nature was so malicious that any form of love seemed out of place. He was more interested in power and causing pain. So, in the context of the show, a real love story for him seems almost impossible.
There could be a really interesting fanfic where a Dragonborn enters the world of Game of Thrones during Joffrey's reign. Maybe the Dragonborn would initially be seen as a threat by Joffrey. But the Dragonborn's powers could change the power dynamics in King's Landing. For example, if the Dragonborn has the ability to control dragons, it would be a huge advantage over the Lannisters who rely mainly on their wealth and military might at that time.
In the context of the fanfic, the Dragonborn's presence could also expose Joffrey's weaknesses more clearly. The people of Westeros, seeing someone with such great power (the Dragonborn) who is not as cruel as Joffrey, might be more inspired to rise up against Joffrey. And Joffrey's own allies might start to question their loyalty to him when they see the Dragonborn as a potential new power player in the game of thrones.
In some fanfiction, it might be Varys. He was known for his intelligence network and his ability to work from the shadows. He could have seen Joffrey as a threat to the stability of the Seven Kingdoms. So, he arranged for the young king's death, perhaps thinking that a more malleable ruler could take his place and be more easily influenced to make better decisions for the realm.
One possible fanfiction could be about Joffrey's brother Tommen growing into a wise and just ruler. He could be shown learning from the mistakes of his older brother. He might start secretly training in combat and political strategy, with the help of some of the more noble characters in the series, like Tyrion perhaps. He could then start to make changes in King's Landing, trying to reverse the chaos that Joffrey had caused.
Joffrey is often characterized as even more cruel and unhinged in fanfiction. His violent outbursts and lack of mercy are sometimes exaggerated. Margaery is usually shown as a very intelligent and manipulative woman. She uses her beauty and charm to her advantage.
There are some really interesting fanfics out there that combine the concepts of a Dragonborn in the Game of Thrones universe with Joffrey. One I've read had the Dragonborn as a sort of mysterious figure who arrives in King's Landing during Joffrey's reign. The Dragonborn's presence throws the power dynamics into chaos as they have their own set of powers and motives. It was really fascinating to see how the author played with the different personalities and politics of the Game of Thrones world in that fanfic.
In many fanfictions, secondary characters around Sansa and Joffrey are well - written. For instance, Tyrion. His relationship with both Sansa and Joffrey in the original series was complex. In fanfiction, his character can be used to further the plot involving Sansa and Joffrey. He might be the voice of reason or a catalyst for change in their relationship.
A fanfic involving a Dragonborn in the Game of Thrones universe with Joffrey could be a wild ride. Maybe the Dragonborn, with their dragon - riding abilities and magic, would pose a significant threat to Joffrey's tyrannical rule. They could swoop in on their dragon, causing chaos in King's Landing and challenging Joffrey's claim to the throne.