How do I put someone else's face onto another person

How do I put someone else’s face onto another person and have the mouth move in sync and eyes blink, like the popular Justin Bieber Filter going around

TikTok - Make Your Day like this

Do I use a 3d texture or a png ?