I'm sure this can be done better (ie: figuring out whether we are mobile once rather than doing it for each element). Suggestions?