The Church clearly tells us that “Individual and integral confession and absolution constitute the only ordinary means by which a member of the faithful who is conscious of grave sin can be reconciled with God and the Church”, but immediately also tells us that “physical or moral impossibility excuses from confession” and that “in such a case reconciliation can be obtained by other means”.
Basically, if we can go to Confession then we must go to Confession, but if we are in hospital or self-isolation, then God loves us so much that he offers us other means of forgiveness, for He does not want “that any should perish” but rather “desires all men to be saved”.
If we cannot get to Confession but truly wish our sins forgiven then we must make an act of perfect contrition. Perfect contrition means that we hate the sins we have committed, are truly sorry for them and are resolved not to sin again, as we say in the Act of Contrition. Such an act of perfect contrition obtains forgiveness of mortal sin as long as we have a firm intention to have recourse to sacramental confession as soon as possible.
In making an act of perfect contrition, we could use the words that are familiar to us from the “I Confess” at Mass or from the prayer often used at Stations of the Cross, “I love thee, Jesus, my love above all things”, or we could use whichever act of contrition we normally use in Confession. What matters is not the words so much as the intention behind the words, the intention to love God, to be truly sorry for our sins, and to intend to Confess in the normal manner as soon as possible.
Added to this, Pope Francis has offered a Plenary Indulgence. A Plenary Indulgence is a grant from the Church, applying the treasury of the satisfactions of Christ and the saints, which takes away all punishments due for the sins that we have committed and which have been forgiven by the perfect act of contrition.
Those who are suffering from the coronavirus, but who are well enough to do so, can obtain this Indulgence by joining in the Mass or Rosary via TV or internet, or at least by saying the Creed, the Our Father, and the Hail Mary.
The indulgence is also granted to every Catholic who, at the point of death, cannot receive the Last Rites (as may well be the case due to current health restrictions), and who has tried to pray in life and who has tried to love God.
 C.960 Code of Canon Law
 2 Peter 3:9
 1 Timothy 2:4
 §1452 Catechism of the Catholic Church