A mass on the TV is not the same thing, yes.
You say a prayer like the following. There are more than one. Here, now you know how. They are consoling too.
Act of Spiritual Communion
by St. Alphonsus Maria de Liguori
Jesus Christ my Savior,
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. Amen.
'A spiritual communion, according to Saint Thomas, consists in an ardent desire to receive Jesus in the Most Holy Sacrament, and in lovingly embracing Him as if we had actually received Him.'
St. Alphonsus Maria de Liguori
'Any Devout Person, may at any Hour, on any Day, Receive Christ in Spiritual Communion, Profitably and without Hindrance. . . For as often as he Devoutly calls-to Mind, the Mystery and Passion of the Incarnate Christ, and is Inflamed-with Love for Him, he Communicates Mystically, and is Invisibly Refreshed.'
Thomas à Kempis
'In this golden ciborium I put your Sacramental Communions. In this silver ciborium I put your Spiritual Communions. Both ciboriums are quite pleasing to Me.'
Our Lord Jesus Christ, to St. Catherine of Siena