The mainstream media do not represent all people's views. The media represents the views of the people that own and control the media. But, the mainstream media and the political correspondents generally influence what the general population is talking about.
For example, whatever your views, who made #Brexit happen? The people (voters) or the media?