Actually power companies use a capacitor bank to keep the voltage up at the end of long lines. They are usually rectangular looking devices.
https://electrical-engineering-porta...s-do-perfectly
( I had a summer job with an electric utility during college with SCE&G.)
Yes, what you need is a resonant regulated transformer. They have a third winding with a capacitor on it.
They also provide isolation.