I am all for banning people from going to Mass during this time, but the things like baptisms, confession, and anointing of the sick are needed now more than ever. But if our pastors are impeded from providing this grace, trust in God.
I posted this another thread, but if your sin is actually mortal and you are actually contrite, God will make sure you receive either the grace of perfect contrition or the ability to confess if you ask for them (even if it takes a miracle).
As Jesus promises:
Matt. 7:[7] Ask, and it shall be given you: seek, and you shall find: knock, and it shall be opened to you.
He elaborates on this elsewhere:
John 16:[24]…Ask, and you shall receive; that your joy may be full.
The condition on His unfailing promise to give what we seek is that it make our joy full, that is, it is good for our salvation (that’s what full joy is). Making a good confession when we are in mortal sin is always good for our salvation!
He also desires all to be saved (see also 1: Tim 2:4)–He doesn’t abandon one who wants to be forgiven:
Matt. 18:[11] For the Son of man is come to save that which was lost. [12]
What think you? If a man have an hundred sheep, and one of them should go astray: doth he not leave the ninety-nine in the mountains, and go to seek that which is gone astray? [13] And if it so be that he find it: Amen I say to you, he rejoiceth more for that, than for the ninety-nine that went not astray. [14] Even so it is not the will of your Father, who is in heaven, that one of these little ones should perish.
That’s why God grants us anything we seek if it is conducive to our salvation. In fact, if He denies what we seek it means not getting it is even better for our salvation! The classic Roman Catechism sums this up when discussing this principle of prayer:
For God will either grant what is asked, and thus they will obtain their wishes; or He will not grant it, and that will be a most certain proof that what is denied the good by Him is not conducive either to their interest or their salvation, since He is more desirous of their eternal welfare than they themselves.
Pray to God in Jesus’ name that you will be able to make a good confession and be absolved or to make an act of perfect contrition, and then do your best to go and sin no more until God enables you to get to confession.