Added auto collapsing for tooltips on mobile or if declared in directive