Add isMobile helper function to renderAssistant