I see no reason to disregard anybody's political views because of what they think or believe about something else that's unrelated to politics.
Why would you? What would be the point of it?
'I don't respect what you think of Trump because you are a Christian.'
In that case,
you are the one who is being irrational.
Besides,
nationalism is usually what determines people's views of religion, politics and science much more than religion impacting the other two (or three).
We saw it in the thread about Sweden's pandemic strategy: Once Sweden went for herd immunity by infection, the vast majority of not only Swedes in general but also of Swedish skeptics became staunch defenders of Anders Tegnell, who is probably the dumbest epidemiologist ever and is now embraced by the people who constitute the MAHA regime in the USA. (Swedes tend to ignore that connection.)
The rise of the anti-vax sentiment in the USA is also tied to radicalization of the U.S. version of patriotism.
In my country, many nationalists who, until then, hadn't been particularly religious (and still aren't) began to embrace Christianity because of racism, not because of religion: Christianity was
Danish and thus good, unlike Islam, the religion of people who weren't considered to be real Danes. So Islam became evil.
A lot of atheists and skeptics did something similar, cf. Dawkins.
Anyway, disregarding people's views of one thing
"because of how they think about other things" is strawman thinking. You have to take their view of whatever for what it is. People can be scientists
and religious
and ... whatever, cf.
Bob Bakker (Wikpedia.)