I used to get mice in my 2022 Jayco then I crawled under it and found large openings around penetrations so I stuff holes with steel wool and then sprayed flex seal over it. then I put a life size plastic owl under behind the wheels and the seems to work. don't use any type of foam the mice love to chew it and make nest in the foam
A couple of the companies that make cans of expanding foam have some that include an irritant, like pepper spray, that mice won’t chew. I’ve used the Great Stuff brand and so far it works. https://www.lowes.com/pd/GREAT-STUFF-SMART-DISPENSER-Pestblock-12-oz-Spray-Foam-Insulation/1000683229