Display helpful button tooltip according to controller type?

hey, what’s the best way show the “press A to open” helpful text but change deppending on what are you using to play, like all games these days?

I have a box collision as a trigger volume that toggles the visibility of a simple text on collision begin and end overlaps, but I wanted the text to change instantly the A letter to an icon of the assigned gamepad button.

how could I approach this?