We need to disconnect from distractions before offering our Salaah. Our aim inside the Masjid should be salaah and focus. But it is allowed to browse through one or two posts on social media.
As long as your social media content is clean and beneficial. This can include responding to whatsapp messages and tweets or messages and emails that involves official work. Be vary and respectful of the environment you are in as well.
Shaykh Yahya Ibrahim explains and answers.