A couple of years ago here I linked this short video about how to give a cat a pill by yourself, without needing another person’s assistance or props or putting it in food. The method shown has an element of squishing the cat.
I found it worked amazingly well. The trick is opening their mouth using one of your hands positioned behind their head, AND using that same arm to press down on their back at the same time.