On that note -
Rule 0) Nobody cares
This is not exclusive to indians, or browsing the internet, but its definitely the most important point everyone should learn as basic education. Nobody cares that you're an indian, or have bad english, or are black, a girl, or a sentient cockroach. All that matters is the content of your posts. You don't need to have the best english to talk to others, you just need to be good enough to get your points across. You don't need to respond when someone points finger at you or the way you type or sound, only reply when they respond about the points you're putting forth. Nobody cares about your personality online and neither should you.
Don't let your poor english get in way of interacting with other people online or offline. Its the way you get practice for speaking better. Sure people will make fun of you, call you esl or nigger whatever, but as long as you get your point across who cares? Just say "sory for my bed england" or something, its not like they're gonna refute your points anyway. And if they do say something about your point, focus on that. Talk more about the specific point rather than focusing on their negative comments. Someone else might engage you about your content rather than calling out negatives, so keep your focus on that.
I see this way too often in video game chat when any indian guy says something and others jump in saying shut up indian, and guy gets into argument, getting defensive on his identity, and then back and forth chimp out ensues and it ruins the whole game's experience. Ignore. You don't have to reply anything. Focus on callouts, focus on enemy positions, others care about these important things more than your bad accent. Stop caring about those "dirty indian" comments, keep your focus on the game and don't feed them more. If they aren't calling out enemy's location they aren't important, so make yourself important by talking about it.
Conversely, don't put on a fake accent, or fake a personality. Please don't. The cringiest thing anyone can do is fake a persona for themselves. Don't act as a white urban american just talking american politics, some cool urban hip lingo. Don't too much emphasis on yourself, nobody cares. If you're talking about american politics there is no need to fake being an american. Focus on what you actually do rather than faking a "presentable version of yourself".