This is the sort of thing that is probably typically better handled via a user stylesheet; one I found from a quick search: https://userstyles.org/styles/140923/medium-com-removing-bot...
This extension, however, has the advantage that it checks for a <meta property="al:ios:app_name" content="Medium"> in the document instead of applying to a hardcoded set of domains.