The exact same mechanism is used to keep poor white Americans voting Republican: even if they're poor, they see themselves as the white ruling class over black and Hispanic people, despite the fact that they themselves are kept poor by the real ruling class.
The con is largely directed at the religious right, of which, poorer whites make up the largest cohort. That's how they convinced people directly targeted by the bigotry to still vote for them.