There is a long-standing procedure to handle a situation like this, which is laid out in the Judiciary Act of 1869.
The death of Justice Ruth Bader Ginsburg opened up a vacancy on the Supreme Court in an election year. Because of the lifetime appointments and the debacle of President Barack Obama trying to appoint a justice after Scalia's death in 2016, the stakes are high enough that both sides of the aisle have put a lot of thought into various outcomes. Keep scrolling for a look at possible paths forward for both parties, what individual politicians have to say, and what the public thinks.