There's no shortage of small apps that promise to tame the macOS menu bar. I tried a bunch, they were all flakey on macOS 27. Chest lasted a full week — and I'm on beta 27.3 — which I consider a win. Enough to recommend it.
https://chest.boringbar.app/

ChestChest: macOS menu bar managerHide the menu bar icons you don’t need, right in the menu bar or in a separate chest. Free, open source and MIT licensed.
commit dc83019