This is not the first time the Church has encountered such a situation. We have been through plagues and natural disasters before where normal sacramental life was disrupted. God does not abandon us in these situations and continues to work through his Church.

For many, right now the fear is that we might become ill or even die without the chance to receive the sacraments. Most priests would be willing to risk going to the dying, but the civil authorities might prevent them. So, what do you do if you are in such a situation and want to go to confession?

The Church’s Code of Canon Law says: “Individual and integral confession and absolution constitute the only ordinary means by which a member of the faithful conscious of grave sin is reconciled with God and the Church. Only physical or moral impossibility excuses from confession of this type; in such a case reconciliation can be obtained by other means” (Canon 960).  ….

Read more here:  3https://www.simplycatholic.com/what-to-do-with-no-confession-forgiveness-in-the-time-of-coronavirus/