If you like someone's profile and they return the favour, then you'll both see a heart icon with a small tick.

This icon appears in a few places:

If you see this icon on someone's profile, you know the feeling is mutual, so don't waste any time before sending a message to connect with them!