Highlight a button with a red rectangle on click in java (iOS mobile devices)

This is a scenario in java where I click a button as follows:

MobileElement element = driver.findElementByXPath(xpath);
element.tap(1, 1);

I need to highlight a button in red colored rectange on click. How to do it?

It can only be done if u r element is under WebView
for all elements under native context we cannot run any js to highlight element…
this is uiautomation framework limitation…

I have an app created under iOnic framework-Hybrid, Highlighting element is possible? How?
I know how to do in Web.