In order to hide the text of a button on different screen size, you could use media queries
. For example you could wrap the text of the button in a span with specific class. Then in your styles, you could hide the element depending on the screen size.
Here is a Dojo example
, where the text of the button is visible or hidden depending on the screen size.