People might have strong opinions about immigration, but it doesn't necessarily swing elections. Immigration might have had some impact on 2024 voters. If you remember, the Biden Administration recognized the problem at the border and began changing policy in the last year or so of the Biden Presidency.
But again even if immigration was not a perceived problem, the Biden/Harris ticket had to overcome inflation and the last minute candidate replacement. Now this is usually where some liberal jumps in and explains how inflation wasn't Biden's fault. We have had that discussion. All I am saying is that it was a voter concern in 2024. (yes, it still is.)