It's simple. Countries are going overseas because it is cheaper, even when you factor in the transportation costs.
So there are two ways to fix it:
Address what is making it more expensive to produce domestically. Labor and climate regulations in particular.
or
Have sanctions and tariffs against any country without comparable regulations in order to actually level (or give a slight advantage to domestic production) the playing field.
It's simple. Countries are going overseas because it is cheaper, even when you factor in the transportation costs.
So there are two ways to fix it:
or