Can you play Mahjong with two players? – The Mahjong Line

Absolutely! When playing Mahjong with two players, players use two racks with the goal of declaring Mahjong twice. Each players builds two walls, one against each pusher. Another option is to not build walls and pick from the shuffled tiles in the middle of the mat. The deal follows the same process as 4-person Mahjong, however, the dealer receives 28 tiles and the other player receives 27.

https://themahjongline.com/blogs/mahjong-tales/can-you-play-mahjong-with-two-players