Anecdotally...
I remember walking down the stairs, late at night, to find my husband "working" in the den. To see him shut whatever screen down asap. More than once. Whatever. Yeah, I put two and two together, but you know what? It didn't matter. I'd been mentally and emotionally done long before and focused on our kids. Didn't really care, tbh. (Although I did snoop and confront him.)
Was it a factor in my decision to file for divorce? Nope. I was more interested in my kids having a mother who was emotionally healthy. And I could not be that with their father. And their well-being was always paramount.