Dynamically set the size of the mobile navigation