I've had periods in my life where I wasn't as in control over my shopping as I would like. I had a few things that helped me.
The first was to indulge my love of fashion with cheaper items, such as accessories. So I wouldn't put myself on a shopping ban, but I would look for things like scarves or costume jewelry that don't cost as much as clothing.
For times when I really felt that I wanted to buy an item of clothing, I made myself stick to a very strict shopping list. I would make a "mood board" of pictures from online (see here for some instructions: https://anuschkarees.com/blog/.....boards-2-0), find out what patterns I was seeing, and stick only to pieces that were really reflected strongly in my mood board. I had a lot of success with this limiting my purchasing. If you're looking for very particular items and don't allow yourself to get sidetracked, you can spend a lot of time shopping but not buying.
You can also edit your closet. Pull out those items that you don't wear anymore, and donate them or get them altered, etc. If you have a consignment shop in the neighborhood, you can maybe sell some pieces. Those shops usually require that the items be laundered and ironed (and I usually soak mine in OxyClean too, to make them as pristine as possible), and all that prep usually takes quite a bit of time, thus eating into the time you would be using to shop.
Another thing to do is to focus your energies on "para-fashion" areas such as hair and nails. Watch some online tutorials for different hairstyles and try to re-create them, or buy yourself a bottle of nail polish and do your own nails. Or you wouldn't even have to paint them--sometimes just filing them and pushing back the cuticles can give you a feeling of satisfaction.
I also tried adding in other hobbies that would take up my time so I wouldn't have as much time for shopping. I used to play some musical instruments, so I took up practicing again. I also tried to learn a new language using materials available for free on our public library website (some public libraries have subscriptions to very good language-learning software). You could also challenge yourself to cook new recipes a certain number of times a week.
One last possibility is to try to spend more time with friends. You could have a simple "game night" with some board games. This is a lot of fun and costs very little.