I recently bought a Samsung smart TV and can't screen mirror my galaxy s5

A

AC Question

I am trying to screen mirror my phone with my smart TV, both are Samsung products, my phone is Galaxy s5. I get so far then when it looks like my phone is trying to connect to my TV I keep getting a 'failed to connect via screen mirroring'. I've gone into both menus of the phone and TV and allowed access etc but I can't seem to be able to connect. Has anyone else had this problem? If so how did you overcome this?
Many thanks .....