This would be a great addition to the API and could save developers a lot of time. A flexible solution like this, combined with tools such as a Mobile View Checker, would make testing and automation much more efficient.
https://thefyptt.com/write-for-us-technology