There's no way to conditionally control which views appear in the view menu, but if you disable the view menu and use buttons to switch between views, you can of course hide those buttons conditionally. Ideally, this is the preferable way to control switching between views anyway.