This is usually a prototype constraint issue in Figma what looks correct in design can shift in prototype if the parent frame is using auto layout or different constraints.
Check that the text layer is properly pinned to top and left inside the frame, and not being affected by auto layout resizing or overflow settings. If needed, I can help you fix the exact setup quickly.
@rancid heath