Hello,
We use wp_is_mobile() default function to detect that mobile device is used and add the necessary body classes, call additional scripts, styles. Point is that WP Rocket ignores that function.
And WP Rocket plugin support recommended using that plugin to avoid problem https://prnt.sc/1syebho So, we can do nothing with that from our side.
Regards