I suppose you're loading an HTML page from a remote server and act based on the content displayed to the user.
You should read the page's text and search for your text. If it's specific enough, it'll only appear in the right context: "Vote for A" will probably not be part of any script, styling or comment. If your text is "width" than you would be in huge trouble: you would have to create a parser that runs through the DOM of the page, and searches only in html content of the tags.
To load a URL you can find an example here. This will give you an input stream. You should read the stream's content, and match your string without whitespaces using a sliding window. You can figure this out, or take a look at this optimised solution.
Afterwards you only have to set the visibility property of your views with View.setVisibility(View.VISIBLE) or View.setVisibility(View.GONE);