How to change the link of the navigation

I want to change the link(link to section) on one of the navigation based on the view.
I created 3 sections for web view, tab view and mobile view (not just changing the class but physically adding sections).

How can I change the link of the navigation whenever I switch views?

first time using webflow. sorry.