During WW1, there was apparently some amount of effort to rename sauerkraut "liberty cabbage" to avoid the German association. My understanding is that this was at least in part driven by a worry from cabbage producers that the public would have a negative reaction to a German-named product. Thus, it may be that in some cases, the causality is reversed - it's not that products are renamed to stoke anti-X sentiment, b…
The same kind of witch-trial fanaticism made being German or speaking German or having any German cultural traits or celebrations completely verboten as cultural norms.
WW1 also saw the Sedition Act being used against anti-war protesters and conscientious objectors. It's all too familiar comparing that to 911 and now the Ukraine. Same thing. Same lack of rationality. Same overblown propaganda whipping up fanaticism. This when you see the WORST in peoples' behavior!