Brexit was just an example, many more have been wrong too . . whether that was down to polling the wrong people, poor 'pundit' interpretation, or simply bad wording in the poll itself who knows.
Suffice to say some people view polls as acceptable data, others see them as manipulation devices . . each to their own