That’s called focus peaking. Whatever is highlighted is in focus. Helps with manual focus. ????
I’m not sure about the S5, but on many cameras you can change the sensitivity and colour of the peaking to your liking (given how advanced the S5 is, I wouldn’t be surprised if you could do this).