If a person commits sins openly and dies without repentance for them is the only expiation for those exposed sins the punishment of jahannam or could other things like the trials he went through in this world, trials in grave, etc. be a reason that the sins he exposed are expiated?

Ustadh AbdulAziz al-Haqqan
Sheikh Al Islam Ibn Taymiyyah has mentioned this, that if his did not repent from certain sins and they were not forgiven but his good deeds outweigh his bad deeds, he doesn't get punished for them.