There are economic mechanisms for this (e.g. https://en.wikipedia.org/wiki/EU_Carbon_Border_Adjustment_Me...) but broadly, yes, it is difficult.