How to rotate the HDMI display connected to BPI-M2-Zero by 180 degrees?

I am using Raspbian OS on BPI-M2-Zero . I need to rotate the display connected to BPI using HDMI cable .

I tried using methods which worked for RPI by making changes in /boot/config.txt but it was of no help .

I also tried the following method “[BPI-M3] how to rotate display screen” but it didn’t work out .

It will almost certainly work with Armbian.