A general direction toward the Qiblah is allowed during prayer when one is far away from it
from the Prophet ﷺ who said ˹to the people of Madinah˺: "What is between the east and the west is Qiblah."
عَنِ النَّبِيِّ ﷺ قَالَ: «مَا بَيْنَ الْمَشْرِقِ وَالْمَغْرِبِ قِبْلَةٌ۔»