You just can't. Don't even try. Also, it isn't what you should be targeting to achieve in your life.
The world is a big place. It's filled with about 7 billion people. Everyone has their own taste.
It's impossible to do something that pleases the world census. Well, unless you're a superhero.
For ordinary humans, like me, it's better to stick to using your time, money, and effort to do something meaningful.
Whatever you do, there will be critics bashing you with harsh comments. Show me a popular YouTube video that has zero dislikes and I'll take this article down.
I realized this when I shared one of my articles on Hacker News. While some people praised my work others just thrashed me with ruthless comments.
Did I stop writing?
Well, you wouldn't be reading this if I had.
If what you're doing pleases you and the most of your target audience, you're on the right track.
Don't let someone's hatred get to you and stop you from accomplishing wonders.
Consider this little story:
This is how you deal with haters.
Additionally, you can use negative remarks to your advantage.
By learning from them.
This is because not all negative remarks are hatred. Some are useful feedback as well. Use them to get better at what you are doing.
It becomes increasingly difficult to reach your destination if you stop to throw stones at every dog that barks along your way.
Don't stop. Glide through the haters. Thug life.