In Islam there is no clergy who forgive sins, and no ritual that must be performed by someone else for forgiveness to happen. Allah says that when His servants ask about Him, He is near, and the Quran describes Him as the One who accepts repentance from His servants and pardons evil deeds. An imam leads the prayer, may give the Friday sermon and teaches, but forgiveness is from Allah alone, asked for in the believer's own words. Christians differ among themselves on confession: in the Catholic tradition a priest gives absolution, while most Protestant churches teach that believers confess to God directly. Islam is closer to the second approach, with the difference that it has no priestly office at all.
Muslims are also taught not to announce their sins. The Prophet Muhammad ﷺ said that all of his community will be pardoned except those who expose their sins openly, such as a person who does something at night, wakes up after Allah has covered him, and then tells people what he did. So the usual guidance is to keep it between you and Allah, stop, ask forgiveness and change, and not to confess the details to friends or post them online.
Another person becomes involved in two cases. First, if you wronged someone, the Prophet ﷺ taught that you should settle it with them today, before a day when there is no money to pay with and wrongs are settled from good deeds, so you return what you took or ask their forgiveness. Second, if you are struggling and need advice, for example on how to leave a habit or how to make amends, it is fine to talk to a trusted scholar, counsellor or doctor. They are not there to absolve you but to help you, because your repentance is between you and your Lord.