[gallows humor]“My most fervent wish is that I will not be replaced until a new president is installed,” Ginsburg said in a statement dictated to her granddaughter, Clara Spera, according to NPR.. She may get that wish.[/gallows humor]
I have also seen versions claiming that the wish referred to a new president being elected.
(I did not verify that link. This is the source I used. https://www.usatoday.com/story/news/politics/2020/09/18/ruth-bader-ginsburgs-last-wish-replaced-different-president/5832544002/ It contains that link.)