What do you think about stories that change history

I have a story in mind that has been bugging me for quite some time but it takes place in the 1700s that concerns a real event that took place about the 1740s. It was a very sad and cruel thing. A young child barely able to walk was taken and thrown in prison. It was all done by his aunt, or something simply because she was a power hungry b and the boy was the young prince. He spent his entire life in prison, and died there in his 20s.
What if he escaped, and was able to challenge her, but, it never happened. Would writing such a story be in bad taste?

And how can I find a good name, I considered something like from prince to queen, but that gives the entire thing away. But yeah, I am considering like him having a relationship with a guard and escaping as his girlfriend. Or something like that

Can someone help me, or would anyone be willing to help me