I had this problem w/ my cat food so I put a smaller bowl inside a larger bowl full of water. Ants would drown in the water and not make it to the cats food. Im sure there is some specialty store out there that sells a bowl w/ a water mote but worth trying to improvise w/ what you have at home. I have also heard ants don’t like coffee grounds cuz they are bitter and to put them in the yard to deter them. I have not tried it since I don’t like coffee but again can’t hurt to try.