I have issues with the church’s stance on confession. I believe that it is a method by which God forgives our sins but I don’t believe it is the only way to be forgiven of mortal sins.
The way sins are forgiven is that one repents…believes the Gospel and is baptized into Christ. All ones sins are washed away and one is a new creation. One is (presuming the normal way) in his Catholic Church and then lives as a Christian - living in Christ…avoiding mortal sin and growing in holiness. One is in true life.
What of those who through no fault of theirs never hear of baptism or of Jesus? Can Jesus save them? Yes in ways known to him it is possible.
What if one commits a mortal sin? Goes against their Baptism…
Jesus gave us the Sacrament of Confession to restore the person to life.
Is it possible for a person to be restored by him before getting to confession? Yes. Where there is possible an act of perfect contrition.
1452 When it arises from a love by which God is loved above all else, contrition is called “perfect” (contrition of charity). Such contrition…also obtains forgiveness of mortal sins if it includes the firm resolution to have recourse to sacramental confession as soon as possible.
scborromeo.org/ccc/p2s2c2a4.htm#1452
Is it possible for a person who was baptized but who is not in full communion with the Church and say does not know that Jesus gave us Confession to be forgiven of a mortal sin? Yes it is possible. Their intent would be to do what Jesus asks…and if they knew he wanted them to be in full communion with the Church and go to confession - they would.
God has given us the normative way - Baptism…Confession…etc . But God is not bound by the Sacraments - Jesus can work in other ways besides those he willed and gave us.
And even say in the last moments of ones life - it is still possible for God to reach one in ways we do not know or see…though we are not to presume on such but turn now to Jesus…