Simple mono audio phase inverter
The subject is definitely quite complex, as different filtering and speaker design will introduce phase shifts and group delays, but in your case, if a simple 180º inversion seems to do the job, you can achieve that by simply opening the subwoofer box and swapping the leads on the speaker itself. A lot easier than building a line-level phase switch.