Проверьте метод shouldInterceptRequest для изменения html перед рендерингом в веб-просмотре.
Вот мой код, который я использую для блокировки рекламы
@TargetApi(Build.VERSION_CODES.LOLLIPOP)
@Override
public WebResourceResponse shouldInterceptRequest(final WebView view, @NonNull final WebResourceRequest request) {
if (mAdBlock.isAd(request.getUrl().toString())) {
ByteArrayInputStream EMPTY = new ByteArrayInputStream("".getBytes());
return new WebResourceResponse("text/plain", "utf-8", EMPTY);
}
}
}