You may be considered a Vietnamese tax resident if you spend 183 days or more in Vietnam during a calendar year. Vietnam also applies a 183-day test during the first 12 consecutive months from the date of arrival in certain cases, and separate permanent-residence criteria may apply.
https://taxsummaries.pwc.com/vietnam/individual/residence