Porn ruining our relationship?

We used to watch it together it wasnt until he wouldn’t want sex he would only want to watch porn he’ll hide out in the bathroom and watch it for 1-2 hours then lie and say he was pooping. He’s constantly watching it but never wants sex with me. He agreed that we could block it off his phone so I did. But now I’ve been finding it all in his YouTube history. After the first time he swore he’d never do it again then I found it again, then again, and again. I don’t know what to do anymore. I told him porn or me and he says he picks me but yet he’s always in the bathroom again and it’s all in his watch later and history. I am at loss I don’t know what to do anymore.

He is a porn addict and it’s ruining the relationship.