I have a scenario where i need to make my site mobile friendly compliance . When i tested this with URL https://search.google.com/test/mobile-friendly , it always go to desktop layout so reports as non-compliance to mobile friendly. we tried with bot device type and added it in the rule section of smartphone device and it seems to be working but for desktop bot request also it resolves the smartphone layout which is not the expected result .
we have then tried with the approach of adding individual user-agent in the different device type and have been able to achieve what we wanted. I would want to ask here that Is it the right approach? would be great if anyone can provide some insights on this scenario or anybody has come across this scenario and how did you resolve it and what are the things to be considered for this scenario ? I understand different bot request will be there in our sites and that should be considered