I do several rounds of editing:
The first edit comes after the chapter is finished (sometimes directly after but it can also be several days later if I have a stockpile at hand). That's where I read over everything, try figuring out what I wanted to say (I'm dictating so what is on the page can differ drastically from what I actually said

), add some sentences here and there, cut some others out, fix some phrasing issues, and edit all the typos I see.
Then I throw the result at Grammarly and see what else comes up red and decide whether it needs fixing. I don't usually look at the other options like what it dislikes in terms of passive or something because I find Grammarly much too strict there. After that, I post the chapter online.
I do another round of editing after at least one volume (but often more than one) or maybe even a whole series has been finished. For that one, I'll print the whole thing out with different formatting (e.g. different font) and go through each line by hand with a pencil, adding notes, marking mistakes, and everything else I find. Then I change back to the laptop and input the edits there while looking up stuff where I might have been unsure (e.g., if I noticed inconsistencies with other volumes or wasn't sure about some information I mentioned). I also make my final decisions on notes I made where I wasn't sure before. If there is something I am
still not sure about, I add a comment in the document at that specific place.
After I've inputted the edits into a chapter each, I throw that chapter at Grammarly again for good measure in case I put in some typos. Here, I
might check the passive etc. warnings from Grammarly but usually, I still ignore them unless I was originally on the hunt for those already

I don't change the version online but this is the version I format and put on Amazon, for example. So there are finally two slightly different versions out there.
Other than editing, there is also what I refer to as revision: This comes after the online posting. It's usually if I find a story overall a bit lacking after I'm further in. For example, I had a story where I started with one chapter per week so to make sure it wouldn't drag on forever, I cut quite a bit and did a lot of time skips. It still reads nice enough and readers haven't really complained but I know the story could be better if I went back and filled in the details. So, after the whole story is finished, I'll first do a revision where I'll go through everything, fill in the details, maybe cut out some other stuff, add other things that come up because of what has changed before, and just make the story more in line with my idea of what it should be like. If I do that, I will still edit after every new chapter immediately and then do another one after the revision is finished.