Too many variables to opine. Apple Music? iTunes Match? OS versions? How do you sync to the iPhone?
The simple answer, is open the playlist on your phone & use that to recreate it on the Mac. Possibly other options but not enough detail in your post to say.