They can't replace the candidate on the ballots at this point. Pence would become President until January, and the Republican electors would choose a replacement, if they won of course. They should choose who the party selects as a replacement (that would most likely be Pence). They can just choose anyone, though.
If the President (or President-Elect if it were Biden that won) died after the election, then the Vice President or Vice President elect would take the job according to the 20th amendment. It only gets murky if the death comes before the election with no time to change the ballots.
|