This isn't limited to the announcement bar, but it's an example of how to set up Shopify to show or hide sections for each device using the theme editor.
Example of setting to show/hide the Dawn theme's announcement bar on each device in the theme editor

Setup Step 1: Add the scheme to "announcement-bar.liquid" and the label to "ja.schema.json"

Step 2: Modify the code in "announcement-bar.liquid"

