The following snippets should be added to a CSS stylesheet.
To remove the cancel button in Chrome and Safari, add
input[type="search"]::-webkit-search-cancel-button {
appearance: none;
}To remove Safari left inner padding under macOS or the magnifying glass on the left under iOS:
[type="search"]::-webkit-search-decoration {
appearance: none;
}