Can. 1248 §2. If participation in the eucharistic celebration becomes impossible because of the absence of a sacred minister or for another grave cause, it is strongly recommended that the faithful take part in a liturgy of the word if such a liturgy is celebrated in a parish church or other sacred place according to the prescripts of the diocesan bishop or that they devote themselves to prayer for a suitable time alone, as a family, or, as the occasion permits, in groups of families.
IOW, canon law encourages those who are prevented from going to Mass due to inavailability to try to do what they can, but that isn't the same as being sick. If you can access the readings for the Sunday on the internet and reflect on them, make an act of spiritual communion and so on, though, even though you're too contagious to let yourself go out in public, that is a good thing to do. If you're too wiped out to do so much as that, do what you can do, and try to get well soon!
Act of Spiritual Communion
I believe that You
are present in the Most Holy Sacrament.
I love You above all things,
and I desire to receive You into my soul.
Since I cannot at this moment
receive You sacramentally,
come at least spiritually into my heart.
I embrace You as if You were already there
and unite myself wholly to You.
Never permit me to be separated from You.
(That's not the only allowed forum, but a traditional one that is still used often.)