I am using slider evolution plugin that provides me a shortcode to insert. I insert it as element>hook>execute shortcode (display on homepage).
I would like to display it just on mobile (with php function). (I don`t want to use css: hide-on-mobile because there is still a lot of requests from that plugin that make the website slow on mobile). I just want to make that plugin work just on desktop view.
wp_is_mobile() is a core function, that will only fire when the page is first visited from a client that matches that function.
This means using responsive views in a browser will not apply to it.
It also means its prone to caching issues ie. if your site/server has any kind of page caching then it must have a separate cache for mobile and for desktop. Otherwise the server will deliver whatever code was cached after the first visit.