A very good question, and one to which none of the "secure the border" types can give a detailed answer.
How is it that you can make a sweeping generalization while confusing two separate issues? That requires some serious effort, I hope you didn't hurt yourself.
I am a "secure the border" type. Let's use the well worn plumbing analog. I'm for fixing the faucet BEFORE I begin to mop up the water.
Let's make a real, rational attempt to secure the border. It can be done, and yes, there will still be illegals, but you can significantly slow the flow.
What to do with those here? That's where it gets sticky. I'm not in favor of mass deportation. Those people were lured here, and came because of promises. I think there should be a system, if you've been here, for sake of argument over 10 years, path to citizenship. Less than 10 but more than 5, path, plus fine if you want to stay. Less than 5, delayed path, plus fine.
To be honest, if someone is here, working, trying to get by, I'm ok with giving them a path to citizenship. What I want most is to slow the flow, and stiffen the penalties to the Chamber of commerce members who lure and hire illegals.