Does Dynamic text to work with masks?

How the heck do I get dynamic text to work with a mask? I can’t seem to figure it out?!