If you mean customising its outfit, buy some clothes from the shop first, then click your pet and select the pink face icon. Choose "Customize Pet" and you'll get options to swap its hat, scarf, or glasses.
It's a purely cosmetic change — handy for giving your pet a bit of personality without affecting anything in the game itself.