If it's a person you know then try distancing yourself and focus on other things, like a hobby. It will pass eventually. If it's a celebrity then just enjoy it.
it helps to distance yourself from them and keep yourself distracted, otherwise you will think about them constantly. Pick up new hobbies or do things that help you get your mind off of everything ie: watch a movie, read a book, play video games, play sports.