Thanks for the info.
Finally I came up with a solution to the problem after lurking a little in the settings table of the database (easier than expected ^^ because it have a non caotic structure).
Here i leave the code just in case anyone need it.
Code:
$counter_aux=preg_match ( '/device\.domain\.com/' , $_SERVER['HTTP_HOST']);
if($counter_aux<>0){
$vbulletin->options['forumhomedepth'] = 2; $vbulletin->options['forumdisplaydepth'] = 2;
$vbulletin->options['subforumdepth'] = 0;
}
On the hook global_setup_complete.