What I have done is wired a solid state relay to control the ac power. I used a small wall wart type power supply in my preamp socket and put the relay in a box with an outlet and line cord. Grounded and polarized components can then be controlled safely. A conventional relay could be used but I have many solid state ones - plus I can control large currents. I use zero crossover relays and haven’t had problems.
A simple circuit but build safely - still controlling line power.