Add viewport tag generation support (#13710)

Change-Id: Ic38f640e44b91b4a1e1e906ab92a751d7a13ee65