Kirby-mobile-detect call to undefined function

Hello, Im trying to use mobile-detect plugin I have installed the plugin and tried to insert the code as its in read.me

<?php if (detect()->isMobile()) { ?> <?php } ?> <?php else: ?>

But im just getting Call to undefined function detect() Error -------

Do I have to create a new snippet or something, I thought the plugin is not working because Im missing something, not sure what?

Did anyone have the same issue? Thanks!

Hi! The plugin you are referring to was for Kirby v2 and has been retired/archived; it cannot be used with Kirby v3.

But worry not, there is an alternative :slight_smile:

Oh I see! Thanks for your help!