Actually, i think i need to reframe my question.
To export "Responsive Layouts" i need a matching number of pages right? So, for example: my page 2 on desktop is equivalent to 2 and 3 on mobile, but i end up with lots of blank pages in the final part of the desktop version (just to match the page number and allow "Responsive Layouts" export option).
So i wanted the code to tell something like: if the user is on desktop version just allow going to next page up to page 16 then stop (because from 17 onward, the pages dont have any content, they are there just as a fill to enable the export)
Thanks