The Birthday of HM The Queen is listed as a flag flying day by UK government guidance.
The Union Flag is specified.
https://www.gov.uk/guidance/designated-days-for-union-flag-flying
The Birthday of HM The Queen is also listed as a flag flying day by Scottish government guidance.
The Scottish Saltire is specified.
https://www.gov.scot/publications/flag-flying-on-government-buildings/