Is there a liquid crystal or similar material that gets cloudy when an electric field is applied, but is otherwise clear?
Electrochromic materials are produced for this purpose and are typically sold as “smart glass”.