How to fix prev and next orientation icons from all doctypes?

how to fix the directions of the previous and next icons specifically when switching to RTL languages.

its a bug in Frappe/ERPNext which i have reported since September 2024 but seems the team is busy with other core and urgent updates.
English Language

Arabic Language

icon orientations of the erpnext next to the print button · Issue #27687 · frappe/frappe