Is there a way to know if the email was opened on mobile or web?

I need to know if I should optimize for web or mobile. How can I find out which my customers are using more?