At some point you have to wonder though. If right wing governments are being elected everywhere with their only real message being “reduce immigration”… maybe, democratically, a lot of people don’t really like immigration?
The fact is that immigration doesn't affect everyone evenly so different people have different opinions on it. Whether it is good or bad might be seen through several different lenses/perspectives.
Culturally immigration is great. Different people bring different ideas, views, cuisines etc and things to offer us culturally.
Economically immigration is great on a macro level. More people, especially working age adults, means more money overall. However it means more infrastructure is required, more public service capacity, more housing, more schools, more GPs etc. If the only thing you care about is the biggest number at the top which we use as a measure aka "The economy" then immigration is great.
If you are a big business and you need to keep costs down then a bigger supply of labour competing for jobs means you can pay people less. More profits for shareholders, cheaper prices which the consumers like.
If you are a worker, with no/little qualifications and every additional person into the country is competing with you for one of the finite jobs available then you might be less happy. If you are a skilled worker in a trade and on a good wage but immigration allows additional people to compete with you for jobs then wages will reduce.
I think it's offensive to say that people are only anti-immigration because they are racist. It is far more likely that the people that are anti-immigration are those at the lower end of the socio-economic scale and it is because they are the people that are most likely to be competing with additional people for jobs, for housing, for use of public services etc. Councils will house people through social housing like refugees, former prisoners, alcoholics, people with mental health or drug problems etc in low cost areas (and it makes sense to, because they are cheap) but it definitely devalues houses in those areas so the people that have managed to buy a house see their house values reduce.
It's very easy for people in a situation like me to be very pro-immigration. Along with all the cultural benefits I will never have social housing on my street, I don't have to compete with extra people for jobs, I will benefit from the economy doing well, more demand for housing means my house will rise in value, I can buy things that aren't necessities for a cheaper price thanks to businesses paying low wages, I could hire a cleaner for cheap rates etc.
In the past Labour, and I think it's evidenced by Corbyn's historic anti-EU position, have been against mass/uncontrolled immigration because of the negative effects it has on the people at the bottom. These days, and especially due to the Brexit argument, they have entrenched themselves on the wrong side (for their historic base) which is why parties like UKIP, and then the Tories, have been able to pick up votes/seats in traditionally staunch Labour strongholds. The Tories are massively pro-immigration because businesses are massively pro-immigration so it doesn't make sense for Labour to be the ones defending immigration at all costs. The Tories might have got Brexit done so uncontrolled immigration from the EU is no longer a thing but they aren't controlling immigration, numbers are rising every year, and it's because they don't want to.
Labour have gone down the route of prioritising the social/cultural aspects of living in the UK and have ignored the people that they used to put first, especially economically, and this goes back to the Blair days, it's not just a recent thing. It was about 10 years ago Thornberry was sacked from tweeting about someone with an England flag up. They turned their back on the working class a long time ago and if they want those voters back they need to prioritise them again.
No doubt there are plenty of racists about and they are easily led/misled by media like the Daily Mail but there is also the lived experience of always having to fight for scraps and seeing the number of people in the fight getting bigger as the scraps get smaller, all the while being told that this is better for everyone.