I think that better integration of migrants might help with the hostility. With better language acquisition, immigrants might be better perceived. It could help to make some language classes mandatory and free of charge. A lot of immigrants might want to learn the language, but they have trouble with it without classes and don't have the money for it.