Parshas Hashavua -parshas achrei mos/kedoshim
ובחקתיהם לא תלכו
Chasidim may not switch their clothes
The (*חכמת אדם(פ"ט:א defends Yidden from (כל ארץ אשכנז) Germany who wear clothing similar to the Goyim.
The חכמת אדם says since in Ashkenaz they never instituted a dress code to be different than the Goyim, therefore there is no Issur of ובחקתיהם לא תלכו** by keeping their original dress, which is similar to the Goyim.
However, Yidden who originate from countries where they did institute a dress code that is different than the Goyim (regardless of the reason) they may not wear clothing similar to the Goyim.Those who do wear such clothing are עובר on ובחקתיהם לא תלכו and are חייב מלקות.
The חכמת אדם writes that when the Russian Government introduced into law requiring all to dress in modern clothing , the Gaon held that it was יהרג ועל יעבור. We see from this the severity of this Issur.
According to this חכמת אדם it's very likely, for those with a Chasidic background to be prohibited from dressing in
*In the second print many parts of this סעיף was cut out by the censors and added that " it is not applicable because of דינא דמלכותא"
The new prints of today replaced it back again like the original first print.
** The Shut Chasam Sofer (O.Ch. 159) uses a similar Sevara why there is no Issur of ובחוקותיהם for shaving.